Skip to content

Must be connected to a node to run this command (#190) #181

Must be connected to a node to run this command (#190)

Must be connected to a node to run this command (#190) #181

name: CD - production
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18
- run: npm ci
- run: npm run build
env:
THIRDWEB_CLIENT_ID: ${{ secrets.THIRDWEB_CLIENT_ID }}
- name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
path: build
deploy:
needs: build
permissions:
pages: write # to deploy to Pages
id-token: write # to verify that the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action