Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
cdivitotawela committed Nov 7, 2023
1 parent 2a03330 commit f35a77f
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 4 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Release

on:
push:
branches: ['main','mmi-3203-github-migration']

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
16 changes: 12 additions & 4 deletions .github/workflows/validate_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ name: Validate PR
on:
pull_request:

# Test
push:
branches: ['mmi-3203-github-migration']

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -25,3 +21,15 @@ jobs:
yarn build
cp -r dist/* public
cp dist/index.html dist/404.html
dependency-review:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Dependency Review
uses: actions/dependency-review-action@v3
with:
fail-on-severity: "high"
vulnerability-check: true

0 comments on commit f35a77f

Please sign in to comment.