Build&Deploy #1599
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: Build&Deploy | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: '0 0 * * *' | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
steps: | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
- name: Checkout Project | |
uses: actions/[email protected] | |
- name: Build | |
run: | | |
sudo npm i yarn -g | |
yarn | |
yarn run build | |
- name: Copy Files | |
run: | | |
cp CNAME dist/CNAME | |
cp README.MD dist/README.MD | |
- name: Upload Artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./dist | |
- name: Deploy to GitHub Pages | |
uses: actions/[email protected] |