Skip to content
This repository was archived by the owner on Jun 10, 2026. It is now read-only.

Commit eb38711

Browse files
committed
Attest and upload files.
1 parent 3a825c9 commit eb38711

1 file changed

Lines changed: 16 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v6
2424

25-
- name: Set architecture
25+
- name: Set env
2626
run: |
27+
echo "QUANTLIB_VERSION=$(cat quantlib-version)" >> $GITHUB_ENV
2728
if [ "${{ matrix.os }}" = 'ubuntu-24.04' ]; then
2829
echo "ARCH=amd64" >> $GITHUB_ENV
2930
elif [ "${{ matrix.os }}" = 'ubuntu-24.04-arm' ]; then
@@ -46,12 +47,21 @@ jobs:
4647
- name: Copy files
4748
run: |
4849
mkdir -p artifacts
49-
version="$(cat quantlib-version)"
50-
cp "output/build/quantlib-$version.jar" "artifacts/${{ env.ARCH }}-quantlib-$version.jar"
51-
cp "output/build/quantlib-$version.pom" "artifacts/${{ env.ARCH }}-quantlib-$version.pom"
50+
cp "output/build/quantlib-${{ env.QUANTLIB_VERSION }}.jar" "artifacts/${{ env.ARCH }}-quantlib-${{ env.QUANTLIB_VERSION }}.jar"
51+
cp "output/build/quantlib-${{ env.QUANTLIB_VERSION }}.pom" "artifacts/${{ env.ARCH }}-quantlib-${{ env.QUANTLIB_VERSION }}.pom"
5252
53-
- name: List files
54-
run: find ./artifacts -type f
53+
- name: Attest files
54+
uses: actions/attest@v4
55+
with:
56+
subject-path: 'artifacts/*'
57+
58+
- name: Upload files
59+
uses: actions/upload-artifact@v6
60+
with:
61+
name: ${{ env.ARCH }}-quantlib-${{ env.QUANTLIB_VERSION }}
62+
path: artifacts/
63+
if-no-files-found: error
64+
retention-days: 2
5565

5666
# TODO - draft release
5767
# - name: Draft release

0 commit comments

Comments
 (0)