This repository has been archived by the owner on Feb 5, 2024. It is now read-only.
chore: offboard Sentry and update CI deps #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
if: (!contains(github.event.commits[0].message, '[skip ci]')) && (!contains(github.event.commits[0].message, '[ci skip]')) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
fetch-depth: '0' | |
- name: Install and Build 🔧 | |
env: | |
ENV: 'PRODUCTION' | |
run: | | |
sed -i "s/NULL_RELEASE/$GITHUB_SHA/" src/main.ts | |
npx pnpm install | |
npx pnpm run build | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@releases/v4 | |
with: | |
branch: gh-pages | |
folder: dist | |
single-commit: true | |
clean: true |