Skip to content

Merge pull request #10 from consensys-vertical-apps/MMI-4561-add-sepo… #4

Merge pull request #10 from consensys-vertical-apps/MMI-4561-add-sepo…

Merge pull request #10 from consensys-vertical-apps/MMI-4561-add-sepo… #4

Workflow file for this run

name: Release
on:
push:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
container:
image: node:14-alpine
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
rm -rf public
mkdir public
yarn
yarn build
cp -r dist/* public
cp dist/index.html dist/404.html
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: mmi-test-dapp-${{ github.sha }}
path: ./public
retention-days: 1
deploy:
runs-on: ubuntu-latest
needs: ['build']
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: mmi-test-dapp-${{ github.sha }}
path: ./public
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './public'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2