Skip to content

Commit

Permalink
ci: draft github release job
Browse files Browse the repository at this point in the history
  • Loading branch information
jpgrayson committed Dec 11, 2023
1 parent 3b9449b commit 72b5b10
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,3 +266,33 @@ jobs:
with:
name: stgit-msi-package
path: contrib/wix/stgit-*.msi

github-release:
name: GitHub Release
if: ${{ startsWith(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
needs: [release, windows-build]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch Tag
run: |
git fetch --force origin "+${GITHUB_REF}:${GITHUB_REF}"
- uses: actions/download-artifact@v3
with:
path: artifacts
- name: Make source archive
run: |
./contrib/release/make-archive.sh artifacts
- name: Draft Release
uses: softprops/action-gh-release@v1
with:
draft: true
fail_on_unmatched_files: true
files: |
artifacts/stgit-*.tar.gz
artifacts/stgit-packages/*.deb
artifacts/stgit-packages/*.rpm
artifacts/stgit-msi-package/*.msi

0 comments on commit 72b5b10

Please sign in to comment.