Add CMS redirect to dashboard navbar #35
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 on Push | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: npm install | |
- name: Build | |
run: npm run build | |
- name: Set up Git | |
run: | | |
git config --global user.name 'jayzsh' | |
git config --global user.email '[email protected]' | |
- name: Push Changes | |
env: | |
GITHUB_TOKEN: ${{ secrets.JAYZSH_GH_TOKEN }} | |
run: | | |
git checkout gh-pages | |
cp -r ./dist/* ./ | |
rm -rf dist | |
git add . | |
git commit -m "Running workflow:on_push.yaml" | |
git push origin gh-pages |