Update CI workflow

This commit is contained in:
CrazyMax 2020-05-09 15:11:59 +02:00
parent 77de85d88e
commit 980032be52
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
2 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,8 @@
name: ci
on:
schedule:
- cron: '0 10 * * *' # everyday at 10am
push:
branches:
- 'dev'

View File

@ -14,7 +14,9 @@ If you are interested, [check out](https://git.io/Je09Y) my other :octocat: GitH
## Usage
Below is a simple snippet to deploy to GitHub Pages:
Below is a simple snippet to deploy to GitHub Pages with a dummy HTML page.
A [workflow](https://github.com/crazy-max/ghaction-github-pages/actions?query=workflow%3Aci) is also available for this repository and deploys [everyday to GitHub pages](https://crazy-max.github.io/ghaction-github-pages/).
```yaml
name: website
@ -29,7 +31,7 @@ jobs:
name: Checkout
uses: actions/checkout@v2
-
name: Build
name: Gen dummy page
run: |
mkdir public
cat > public/index.html <<EOL
@ -54,8 +56,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
A [test workflow](https://github.com/crazy-max/ghaction-github-pages/actions?query=workflow%3Atest) is also available for this repository and deploys to GitHub pages at https://crazy-max.github.io/ghaction-github-pages/.
## Customizing
### inputs