Skip to content

Merge pull request #45 from mfactory-lab/dev #4

Merge pull request #45 from mfactory-lab/dev

Merge pull request #45 from mfactory-lab/dev #4

Workflow file for this run

name: Deploy Stage
on:
workflow_dispatch:
push:
branches: [ stage ]
env:
REPO: mfactory-lab/albus-defi-stage
URL: stage.defi.albus.finance
jobs:
build:
runs-on: ubuntu-latest
environment:
name: production
url: https://${{ env.URL }}
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: pnpm
- name: Install
run: pnpm install --frozen-lockfile
- name: Build
env:
NODE_OPTIONS: "--max_old_space_size=4096"
run: |
pnpm run build:stage
cp dist/index.html dist/404.html && touch dist/.nojekyll
echo ${{ env.URL }} > dist/CNAME
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
repository-name: ${{ env.REPO }}
token: ${{ secrets.PAT }}
folder: dist