Skip to content

Commit 72b5b10

Browse files
committed
ci: draft github release job
1 parent 3b9449b commit 72b5b10

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,3 +266,33 @@ jobs:
266266
with:
267267
name: stgit-msi-package
268268
path: contrib/wix/stgit-*.msi
269+
270+
github-release:
271+
name: GitHub Release
272+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
273+
runs-on: ubuntu-latest
274+
needs: [release, windows-build]
275+
steps:
276+
- name: Checkout Repository
277+
uses: actions/checkout@v4
278+
with:
279+
fetch-depth: 0
280+
- name: Fetch Tag
281+
run: |
282+
git fetch --force origin "+${GITHUB_REF}:${GITHUB_REF}"
283+
- uses: actions/download-artifact@v3
284+
with:
285+
path: artifacts
286+
- name: Make source archive
287+
run: |
288+
./contrib/release/make-archive.sh artifacts
289+
- name: Draft Release
290+
uses: softprops/action-gh-release@v1
291+
with:
292+
draft: true
293+
fail_on_unmatched_files: true
294+
files: |
295+
artifacts/stgit-*.tar.gz
296+
artifacts/stgit-packages/*.deb
297+
artifacts/stgit-packages/*.rpm
298+
artifacts/stgit-msi-package/*.msi

0 commit comments

Comments
 (0)