v2.6.1 #39
Workflow file for this run
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" | |
on: | |
release: | |
types: [released] # triggered on main branch releases | |
jobs: | |
install: | |
name: "Install" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "π Checkout" | |
uses: actions/checkout@v4 | |
- name: "π§ Setup" | |
uses: ./.github/actions/use-dependencies | |
build: | |
name: "Build" | |
needs: install | |
runs-on: ubuntu-latest | |
steps: | |
- name: "π Checkout" | |
uses: actions/checkout@v4 | |
- name: "π§ Setup" | |
uses: ./.github/actions/use-dependencies | |
- name: "ποΈ Build" | |
run: yarn build | |
- name: "π€ Upload artifact" | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./build | |
deploy: | |
name: "Deploy" | |
needs: [install, build] | |
permissions: | |
pages: write # to deploy to pages | |
id-token: write # to verify the deployment originates from an appropriate source | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: "π Deploy" | |
id: deployment | |
uses: actions/deploy-pages@v4 |