From e447fc0f1e3b875a9b8830c03f97e8059c6f7316 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Roth?= Date: Sun, 20 Apr 2025 23:54:10 +0200 Subject: [PATCH] ci: keep CI artifacts for 7 days --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c65b90a4..d8b61e9c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -207,6 +207,23 @@ jobs: run: | .github/workflows/scripts/upload-artifacts.sh release ${{ matrix.suite }} + - name: "Get aptly version" + env: + FORCE_CI: ${{ steps.force_ci.outputs.FORCE_CI }} + run: | + aptlyver=$(make -s version) + echo "Aptly Version: $aptlyver" + echo "VERSION=$aptlyver" >> $GITHUB_OUTPUT + id: releaseversion + + - name: "Upload CI Artifacts" + if: github.ref != 'refs/heads/master' && !startsWith(github.event.ref, 'refs/tags') + uses: actions/upload-artifact@v4 + with: + name: aptly_${{ steps.releaseversion.outputs.VERSION }}_${{ matrix.suite }}_${{ matrix.arch }} + path: build/ + retention-days: 7 + ci-binary-build: name: "Build" needs: test @@ -267,6 +284,15 @@ jobs: path: build/aptly_${{ steps.releaseversion.outputs.VERSION }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip compression-level: 0 # no compression + - name: "Upload CI Artifacts" + uses: actions/upload-artifact@v4 + if: "!startsWith(github.event.ref, 'refs/tags')" + with: + name: aptly_${{ steps.releaseversion.outputs.VERSION }}_${{ matrix.goos }}_${{ matrix.goarch }} + path: build/aptly_${{ steps.releaseversion.outputs.VERSION }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip + compression-level: 0 # no compression + retention-days: 7 + gh-release: name: "Github Release" runs-on: ubuntu-latest