Merge pull request #7 from petertonysmith94/fix/remove-content #19
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 | |
- release/** | |
pull_request: | |
branches: | |
- main | |
- release/** | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛎️ Checkout | |
uses: actions/checkout@v3 | |
- name: 🏗️ PNPM Setup | |
uses: ./.github/actions/setup-pnpm | |
- name: 🔧 Install Dependencies | |
run: pnpm install | |
- name: 🔨 Build | |
run: pnpm run build | |
- name: 📦 Upload Build Artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
name: "build-artifact-${{ github.sha }}" | |
path: build | |
production-deploy: | |
needs: [build] | |
runs-on: ubuntu-latest | |
permissions: | |
pages: write | |
contents: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action | |
with: | |
artifact_name: "build-artifact-${{ github.sha }}" | |
preview: true | |