Update action #7
Workflow file for this run
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: deploy-v2 | |
on: | |
push: | |
branches: | |
- tree-page-2 | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache temporary folders | |
uses: actions/cache@v4 | |
with: | |
path: | | |
frontend-v2/node_modules | |
key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build- | |
- name: Build the site | |
run: make -C frontend-v2 install build | |
- name: Clone pages | |
run: | | |
gh repo clone umonkey/umonkey.github.io v2 | |
rm -rf v2/* | |
cp -R frontend-v2/build/* v2/ | |
cd v2 | |
git add . | |
git commit -m "Deploy frontend-v2 to GitHub Pages" | |
git push | |
env: | |
GH_TOKEN: ${{ github.token }} |