Skip to content

Commit e58c19f

Browse files
committed
Add the release ci machinery
1 parent 0e6e956 commit e58c19f

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ on:
44
push:
55
branches:
66
- '**'
7+
tags:
8+
- '[0-9]*'
79
pull_request:
810

11+
permissions:
12+
contents: read
13+
914
concurrency:
1015
group: ${{ github.workflow }}-${{ github.ref }}
1116
cancel-in-progress: true
@@ -85,3 +90,35 @@ jobs:
8590
name: debian-package
8691
path: dist/debian/*.deb
8792
if-no-files-found: error
93+
94+
release:
95+
name: Publish release
96+
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
97+
needs:
98+
- build
99+
- meson
100+
- debian
101+
runs-on: ubuntu-latest
102+
permissions:
103+
contents: write
104+
steps:
105+
- name: Checkout
106+
uses: actions/checkout@v6
107+
with:
108+
fetch-depth: 0
109+
110+
- name: Download artifacts
111+
uses: actions/download-artifact@v8
112+
with:
113+
path: dist/artifacts
114+
115+
- name: Create GitHub release
116+
uses: softprops/action-gh-release@v3.0.0
117+
with:
118+
name: ${{ github.ref_name }}
119+
tag_name: ${{ github.ref_name }}
120+
draft: false
121+
prerelease: false
122+
generate_release_notes: true
123+
files: |
124+
dist/artifacts/debian-package/*.deb

0 commit comments

Comments
 (0)