diff --git a/.github/workflows/web3-build.yml b/.github/workflows/web3-build.yml new file mode 100644 index 0000000..d89df75 --- /dev/null +++ b/.github/workflows/web3-build.yml @@ -0,0 +1,35 @@ +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: Install Deps + shell: bash + run: pnpm i + + - name: Build + run: | + pnpm build:web3 + rm ./dist/CNAME + + - name: Upload Artifact + id: artifact-upload-step + uses: actions/upload-artifact@v4 + with: + path: ./dist/ + + - name: Output artifact ID + run: echo 'Artifact ID is ${{ steps.artifact-upload-step.outputs.artifact-id }}' diff --git a/mise.toml b/mise.toml index 6a0493c..cd5e267 100644 --- a/mise.toml +++ b/mise.toml @@ -1,2 +1,3 @@ [tools] node = "22" +pnpm = "9.15.0" diff --git a/package.json b/package.json index 86b8bea..8a8b41d 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "scripts": { "dev": "astro dev", "build": "astro build", + "build:web3": "astro build --mode web3", "preview": "astro preview", "astro": "astro" },