Deploy #1804
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
schedule: | |
- cron: '0 8 * * *' | |
push: | |
branches: | |
- gh-pages | |
name: Deploy | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
with: | |
ref: gh-pages | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- name: install | |
run: npm install | |
- name: Build | |
run: npm run build | |
- uses: sarisia/actions-status-discord@v1 | |
if: failure() | |
with: | |
status: ${{ job.status }} | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
- name: Commit files | |
continue-on-error: true | |
run: | | |
git add . | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git commit -m "Build dependencies" -a | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: 'gh-pages' |