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 name: ci
on: on:
schedule:
- cron: '0 10 * * *' # everyday at 10am
push: push:
branches: branches:
- 'dev' - 'dev'

View File

@ -14,7 +14,9 @@ If you are interested, [check out](https://git.io/Je09Y) my other :octocat: GitH
## Usage ## 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 ```yaml
name: website name: website
@ -29,7 +31,7 @@ jobs:
name: Checkout name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- -
name: Build name: Gen dummy page
run: | run: |
mkdir public mkdir public
cat > public/index.html <<EOL cat > public/index.html <<EOL
@ -54,8 +56,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 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 ## Customizing
### inputs ### inputs