Skip to content

Commit

Permalink
Implement web3 build GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
nipsysdev committed Jan 8, 2025
1 parent 617a491 commit 62eaa13
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/web3-build.yml
Original file line number Diff line number Diff line change
@@ -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 }}'
1 change: 1 addition & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[tools]
node = "22"
pnpm = "9.15.0"
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"scripts": {
"dev": "astro dev",
"build": "astro build",
"build:web3": "astro build --mode web3",
"preview": "astro preview",
"astro": "astro"
},
Expand Down

0 comments on commit 62eaa13

Please sign in to comment.