Update npm deps #142
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: | |
branches: main | |
workflow_dispatch: | |
concurrency: | |
group: ci-${{ github.event_name }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
- run: bundle install | |
- run: npm ci | |
- run: npm run build | |
- name: Deploy | |
working-directory: ./docs/_site | |
run: | | |
touch .nojekyll | |
git init | |
git config user.name "Victor" | |
git config user.email "[email protected]" | |
git add . | |
git commit -m "Auto-build ${GITHUB_SHA}" | |
git push --force https://theonlypwner:${GH_TOKEN}@github.com/vwww/victorz.ca.git HEAD | |
rm CNAME | |
mv robots2.txt robots.txt | |
git add . | |
git commit --amend --no-edit | |
git push --force https://theonlypwner:${GH_TOKEN}@github.com/vwww/vwww.github.io.git HEAD | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} |