Skip to content

Commit

Permalink
build: add staging release
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Dec 15, 2022
1 parent d828e93 commit 4ab65ec
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ jobs:
add: 'docs'
message: 'docs: update config docs'

deploy-dev:
name: Deploy to staging
deploy-firebase-dev:
name: Deploy staging to firebase
runs-on: ubuntu-latest
needs: release-please
environment:
Expand All @@ -80,6 +80,40 @@ jobs:
build-command: npm run build:stage
repo-token: ${{ secrets.GITHUB_TOKEN }}

deploy-dev:
name: Cut staging release
runs-on: ubuntu-latest
needs: release-please
environment:
name: dev
if: github.ref_name == 'dev' && needs.release-please.outputs.release_created

steps:
- name: ⬇️ Set up code
uses: actions/checkout@v3

- name: ⎔ Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: npm

- name: 📥 Download dependencies
run: npm ci

- name: 🏗 Run build
run: npm run build:stage

- name: 🗜 Compress
run: npm run zip

- name: 🚀 Create release
uses: svenstaro/upload-release-action@v2
with:
tag: ${{ needs.release-please.outputs.tag_name }}
file: build.zip
prerelease: true

deploy-prod:
runs-on: ubuntu-latest
needs: release-please
Expand Down

0 comments on commit 4ab65ec

Please sign in to comment.