Skip to content

feat: update mm and others (#60) #144

feat: update mm and others (#60)

feat: update mm and others (#60) #144

Workflow file for this run

name: Publish Demo
env:
CI: true
FORCE_COLOR: 1
on: [push]
jobs:
publish:
runs-on: ubuntu-latest
if: github.ref_name == 'master'
steps:
- uses: actions/checkout@v3
- uses: pnpm/[email protected]
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 18
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
preview:
runs-on: ubuntu-latest
if: github.ref_name != 'master' && github.actor != 'dependabot[bot]'
steps:
- uses: actions/checkout@v3
- uses: pnpm/[email protected]
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- run: pnpm install
- run: pnpm -r --filter demo run build
env:
GITHUB_WORKFLOW_ID: ${{ github.run_id }}
- name: Add report to web3.storage
uses: web3-storage/add-to-web3@v2
id: add_to_web3_storage
with:
path_to_add: examples/demo/dist
web3_token: ${{ secrets.WEB3_TOKEN }}
- name: Add url to GITHUB_STEP_SUMMARY
run: |
echo "
### Preview URL 🌐
${{ steps.add_to_web3_storage.outputs.url }}
" >> $GITHUB_STEP_SUMMARY
- uses: mshick/add-pr-comment@v2
with:
message-id: 'preview-url'
message: |
### Preview URL 🌐
${{ steps.add_to_web3_storage.outputs.url }}