On Schedule #199
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
name: On Schedule | |
on: | |
schedule: | |
- cron: '5 6 * * *' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Synchronize Issues | |
run: | | |
node .run/sync-issues.js 1 ${{ secrets.TOKEN }} | |
- name: Install Dependencies | |
run: npm ci | |
- name: Build | |
run: | | |
rm -rf docs | |
npm run build | |
mv build docs | |
cp .run/CNAME docs | |
- name: Deploy | |
run: | | |
git config --global user.name github-actions | |
git config --global user.email [email protected] | |
git add -A | |
git commit -m "π Deployed by GitHub Actions" | |
git push |