Skip to content

Commit 0621982

Browse files
committed
Setup release.
1 parent e960dba commit 0621982

2 files changed

Lines changed: 26 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,20 @@ jobs:
4444
platforms: linux/${{ env.ARCH }}
4545
outputs: type=local,dest=./output
4646

47-
- name: Copy files
47+
- name: Copy artifacts
4848
if: github.event_name == 'push'
4949
run: |
5050
mkdir -p artifacts
5151
cp "output/build/quantlib-${{ env.QUANTLIB_VERSION }}.jar" "artifacts/${{ env.ARCH }}-quantlib-${{ env.QUANTLIB_VERSION }}.jar"
5252
cp "output/build/quantlib-${{ env.QUANTLIB_VERSION }}.pom" "artifacts/${{ env.ARCH }}-quantlib-${{ env.QUANTLIB_VERSION }}.pom"
5353
54-
- name: Attest files
54+
- name: Attest artifacts
5555
if: github.event_name == 'push'
5656
uses: actions/attest@v4
5757
with:
5858
subject-path: 'artifacts/*'
5959

60-
- name: Upload files
60+
- name: Upload artifacts
6161
if: github.event_name == 'push'
6262
uses: actions/upload-artifact@v6
6363
with:
@@ -66,11 +66,26 @@ jobs:
6666
if-no-files-found: error
6767
retention-days: 2
6868

69-
# TODO - draft release
70-
# - name: Draft release
71-
# if: startsWith(github.ref, 'refs/tags/v') && github.event_name == 'push'
72-
# with:
73-
# draft: true
74-
# files: output/build/*
75-
# fail_on_unmatched_files: true
69+
release:
70+
needs: [build]
71+
# if: startsWith(github.ref, 'refs/tags/v') && github.event_name == 'push'
72+
if: github.event_name == 'push'
73+
runs-on: ubuntu-24.04
74+
steps:
75+
- uses: actions/checkout@v6
7676

77+
- name: Download artifacts
78+
uses: actions/download-artifact@v8
79+
with:
80+
path: artifacts/
81+
merge-multiple: true
82+
83+
- name: List artifacts
84+
run: ls -R artifacts
85+
86+
- name: Create Release
87+
uses: softprops/action-gh-release@v2
88+
with:
89+
draft: true
90+
files: artifacts/*
91+
fail_on_unmatched_files: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

0 commit comments

Comments
 (0)