Merge branch 'main' of github.com:loathers/greenbox #184
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 website | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
env: | |
node-version: "22" | |
permissions: | |
contents: write | |
jobs: | |
deploy: | |
concurrency: ci-${{ github.ref }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ env.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.node-version }} | |
- run: corepack enable | |
- name: Build | |
run: | | |
yarn install --immutable | |
yarn workspace greenbox-web run build | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: packages/greenbox-web/dist |