Implement web3 build GitHub action #5
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: Web3 Build | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node using mise | |
uses: jdx/mise-action@v2 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v4 | |
- name: Install Deps | |
shell: bash | |
run: pnpm i | |
- name: Build | |
shell: bash | |
run: astro build --mode web3 | |
- name: Upload Pages Artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./dist/ |