-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (35 loc) · 969 Bytes
/
release.yml
File metadata and controls
38 lines (35 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Release
on:
push:
branches:
- release/*
release:
types: [published]
jobs:
deploy:
runs-on: "ubuntu-latest"
environment: github-pages
env:
VITE_HONEYBADGER_API_KEY: ${{ secrets.HONEYBADGER_API_KEY }}
VITE_POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}
VITE_AUTH_TENANT_URL: ${{ secrets.AUTH_TENANT_URL }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: "yarn"
- run: yarn
- run: yarn predeploy
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
keep_files: true
destination_dir: latest
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
keep_files: true
destination_dir: ${{ github.ref }}