Skip to content

Commit 3d17295

Browse files
committed
Try creating releases with Github Actions.
1 parent dcb8ad2 commit 3d17295

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/pkg.yaml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,30 @@ jobs:
1212
with:
1313
package_build_rules: |
1414
image:
15+
- "debian:bookworm"
1516
- "debian:trixie"
1617
target: x86_64
1718
deb_extra_build_packages: libcairo2-dev libpango1.0-dev
18-
19+
release:
20+
needs: package
21+
if: ${{ ! startsWith(github.ref, 'refs/tags/v') }}
22+
steps:
23+
- name: Install gh
24+
run: sudo apt install -y gh
25+
- name: Create dist directory
26+
run: mkdir -p $GITHUB_WORKSPACE/dist
27+
- name: Dowload artifacts
28+
uses: actions/download-artifact@v6
29+
with:
30+
path: $GITHUB_WORKSPACE/dist
31+
- name: Create release
32+
env:
33+
GITHUB_TOKEN: ${{ github.token }}
34+
tag: ${{ github.ref_name }}
35+
run: |
36+
gh release create "$tag" \
37+
--repo="$GITHUB_REPOSITORY" \
38+
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
39+
--latest --verify-tag \
40+
$GITHUB_WORKSPACE/dist/*
41+

0 commit comments

Comments
 (0)