Skip to content

Commit 4aeea93

Browse files
committed
workflow stuff
1 parent f08f8b7 commit 4aeea93

File tree

2 files changed

+54
-1
lines changed

2 files changed

+54
-1
lines changed

.github/workflows/api_cd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
3333

3434
tag:
35-
needs: deploy
35+
needs: [compute-version, deploy]
3636
runs-on: ubuntu-latest
3737
permissions:
3838
contents: write

.github/workflows/web_cd.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
on:
2+
workflow_dispatch:
3+
4+
jobs:
5+
compute-version:
6+
runs-on: ubuntu-latest
7+
outputs:
8+
version: ${{ steps.version.outputs.version }}
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
fetch-tags: true
14+
- run: git fetch --tags --force
15+
- uses: ./.github/actions/doxxer_install
16+
- id: version
17+
run: |
18+
VERSION=$(doxxer --config doxxer.web.toml next patch)
19+
echo "version=$VERSION" >> $GITHUB_OUTPUT
20+
echo "Computed version: $VERSION"
21+
22+
deploy:
23+
needs: compute-version
24+
runs-on: depot-ubuntu-24.04-8
25+
timeout-minutes: 60
26+
concurrency: web-netlify-deploy
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: ./.github/actions/pnpm_install
30+
- uses: denoland/setup-deno@v2
31+
- run: pnpm -F ui build
32+
- run: pnpm -F web build
33+
env:
34+
VITE_APP_URL: "https://hyprnote.com"
35+
VITE_APP_VERSION: ${{ needs.compute-version.outputs.version }}
36+
- run: npm install -g netlify-cli
37+
- run: netlify deploy --prod --dir=apps/web/dist/client
38+
env:
39+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
40+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
41+
42+
tag:
43+
needs: [compute-version, deploy]
44+
runs-on: ubuntu-latest
45+
permissions:
46+
contents: write
47+
steps:
48+
- uses: actions/checkout@v4
49+
- uses: mathieudutour/[email protected]
50+
with:
51+
github_token: ${{ secrets.GITHUB_TOKEN }}
52+
custom_tag: web_v${{ needs.compute-version.outputs.version }}
53+
tag_prefix: ""

0 commit comments

Comments
 (0)