-
Notifications
You must be signed in to change notification settings - Fork 37
48 lines (42 loc) · 1.12 KB
/
Copy pathserver-dev-release.yml
File metadata and controls
48 lines (42 loc) · 1.12 KB
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
39
40
41
42
43
44
45
46
47
48
name: server-dev-release
run-name: ${{ github.actor }} server dev build
permissions:
contents: write
packages: write
attestations: write
id-token: write
on:
workflow_dispatch:
push:
branches: [dev]
paths:
- "apps/server/**"
- "apps/server-ui/**"
jobs:
prepare:
runs-on: ubuntu-latest
outputs:
dev-version: ${{ steps.gen.outputs.DEV_VERSION }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
fetch-depth: 0
- id: gen
run: |
dev_version=$(bash scripts/dev-version.sh apps/server/Cargo.toml)
echo "DEV_VERSION=$dev_version" >> "$GITHUB_ENV"
echo "DEV_VERSION=$dev_version" >> "$GITHUB_OUTPUT"
build:
needs: prepare
uses: ./.github/workflows/reusable-server-build.yml
with:
version: ${{ needs.prepare.outputs.dev-version }}
prerelease: true
tag-name: dev-server-${{ github.run_number }}
secrets: inherit
cleanup:
needs: build
uses: ./.github/workflows/reusable-dev-release-cleanup.yml
with:
tag-prefix: dev-server-
secrets: inherit