pataruco is deploying NR2F1 assets to GitHub Pages #21
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 NR2F1 assets to GitHub Pages | |
run-name: ${{ github.actor }} is deploying NR2F1 assets to GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- website-assets/** | |
- .deploy-assets-to-gh-pages.yaml | |
- '!CHANGELOG.md' | |
# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
# Allow one concurrent deployment | |
concurrency: | |
group: 'pages' | |
cancel-in-progress: true | |
jobs: | |
deploy-assets-to-gh-pages: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set environment and install dependencies | |
uses: ./.github/actions/prepare | |
- name: Build project artifacts | |
run: pnpm nx build website-assets | |
- name: Setup Pages | |
uses: actions/configure-pages@v5 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: './dist/apps/website-assets' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |