We finally have a workflow again
This commit is contained in:
58
.gitea/workflows/build-publish.yaml
Normal file
58
.gitea/workflows/build-publish.yaml
Normal file
@@ -0,0 +1,58 @@
|
||||
name: Test, Build, Deploy
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Test-Build-Deploy:
|
||||
name: Test, Build, and Deploy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
|
||||
- name: Install Wrangler
|
||||
run: npm install -g wrangler
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Check Formatting
|
||||
run: npm run check-format
|
||||
|
||||
- name: Build
|
||||
run: npm run build
|
||||
|
||||
- name: Deploy
|
||||
run: wrangler pages deploy public --project-name $CLOUDFLARE_PROJECT_NAME
|
||||
|
||||
env:
|
||||
CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
|
||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
CLOUDFLARE_PROJECT_NAME: ${{ vars.CLOUDFLARE_PROJECT_NAME }}
|
||||
|
||||
Sentry-Release:
|
||||
name: Create Sentry Release
|
||||
runs-on: ubuntu-latest
|
||||
needs: Test-Build-Deploy
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
|
||||
|
||||
- name: Install Sentry SDK
|
||||
run: curl -sL https://sentry.io/get-cli/ | bash
|
||||
|
||||
- name: Propose and Create Release Version
|
||||
run: |
|
||||
VERSION=$(sentry-cli releases propose-version)
|
||||
sentry-cli releases new $VERSION
|
||||
sentry-cli releases set-commits --auto $VERSION
|
||||
sentry-cli releases finalize $VERSION
|
||||
|
||||
env:
|
||||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||
SENTRY_ORG: ${{ vars.SENTRY_ORG }}
|
||||
SENTRY_PROJECT: ${{ vars.SENTRY_PROJECT }}
|
||||
Reference in New Issue
Block a user