Skip to content

feat(env): dev examples #4

feat(env): dev examples

feat(env): dev examples #4

Workflow file for this run

name: Continuous Deployment Beta
on:
push:
branches: ["beta"]
env:
ENV_VARS: ${{ secrets.ENV_VARS }}
BETA_ENV_VARS: ${{ secrets.BETA_ENV_VARS }}
jobs:
build-beta:
runs-on: self-hosted
defaults:
run:
working-directory: ./beta
steps:
- uses: actions/checkout@v4
with:
path: 'beta'
- uses: actions/setup-node@v4
with:
node-version: 20
- run: pnpm install
- name: Create .env
run: |
echo $ENV_VARS | base64 --decode > .env
echo $BETA_ENV_VARS | base64 --decode >> .env
- run: pm2 restart beta.config.cjs