fd8b68dfa7
Bumps [actions/checkout](https://github.com/actions/checkout) from v2.3.0 to v2.3.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/master/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2.3.0...28c7f3d2b5162b5ddd3dfd9a45aa55eaf396478b) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
42 lines
1011 B
YAML
42 lines
1011 B
YAML
name: ci
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 10 * * *' # everyday at 10am
|
|
push:
|
|
branches:
|
|
- dev
|
|
- releases/v*
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v2.3.1
|
|
-
|
|
name: Gen dummy page
|
|
run: |
|
|
mkdir public
|
|
cat > public/index.html <<EOL
|
|
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>GitHub Pages deployed!</title>
|
|
</head>
|
|
<body>
|
|
<p>GitHub Pages with <strong>${{ github.sha }}</strong> commit ID has been deployed through <a href="https://github.com/marketplace/actions/github-pages">GitHub Pages action</a> successfully on <strong>$(date)</strong>.</p>
|
|
</body>
|
|
</html>
|
|
EOL
|
|
-
|
|
name: Deploy
|
|
if: success()
|
|
uses: ./
|
|
with:
|
|
target_branch: gh-pages
|
|
build_dir: public
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|