-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (49 loc) · 1.09 KB
/
release.yaml
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
49
name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
uses: ./.github/workflows/build.yaml
package:
needs:
- build
uses: ./.github/workflows/package.yaml
archive:
needs:
- build
uses: ./.github/workflows/archive.yaml
upload:
needs:
- archive
- package
uses: ./.github/workflows/upload.yaml
secrets: inherit
release:
runs-on: ubuntu-latest
needs:
- archive
- package
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: extractions/setup-just@v2
- uses: actions/download-artifact@v4
with:
name: archives
path: archives
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
- id: get-prerelease
run: echo "prerelease=$(just pre-release)" >> "$GITHUB_OUTPUT"
- uses: softprops/action-gh-release@v2
with:
draft: false
prerelease: ${{ steps.get-prerelease.outputs.prerelease == 'true' }}
files: |
archives/**/*
dist/**/*