update resume with recent contributions and links #153
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 to GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
node-setup: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/node-cache | |
id: cache-node-modules | |
with: | |
node-version: 'lts/*' | |
- run: npm i | |
if: steps.cache-node-modules.outputs.cache-hit != 'true' | |
generate-website: | |
name: Generate website | |
needs: node-setup | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/node-cache | |
id: cache-node-modules | |
with: | |
node-version: 'lts/*' | |
- name: Generate website | |
id: build_website | |
if: steps.cache-node-modules.outcome == 'success' | |
env: | |
GH_API_TOKEN: ${{ secrets.GH_API_TOKEN }} | |
run: npm run build | |
- name: 🚀 Deploy to GitHub Pages | |
if: steps.build_website.outcome == 'success' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist |