Publish Demo #359
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: Publish Demo | |
env: | |
CI: true | |
FORCE_COLOR: 1 | |
on: | |
workflow_dispatch: | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
if: github.ref_name == 'master' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: latest | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: pnpm | |
- run: pnpm install | |
- run: pnpm -r --filter demo run build | |
env: | |
GITHUB_WORKFLOW_ID: ${{ github.run_id }} | |
# - uses: fission-suite/[email protected] | |
# id: fission | |
# with: | |
# machine_key: ${{ secrets.FISSION_MACHINE_KEY }} | |
# workdir: examples/demo | |
# - name: Add url to GITHUB_STEP_SUMMARY | |
# run: | | |
# echo " | |
# ### App URL 🌐 | |
# https://dweb.link/ipfs/${{ steps.fission.outputs.app_cid }} | |
# " >> $GITHUB_STEP_SUMMARY | |
- name: Deploy | |
uses: cloudflare/wrangler-action@v3 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
command: pages deploy examples/demo/dist --project-name filsnap --branch main |