diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d372986..d04f7a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,10 +13,15 @@ jobs: working-directory: ./src/spice2x steps: - uses: actions/checkout@v4 + - name: Calculate commit SHA + id: vars + run: | + calculatedSha=$(git rev-parse --short ${{ github.sha }}) + echo "COMMIT_SHORT_SHA=$calculatedSha" >> $GITHUB_ENV - name: Compile run: ./build_docker.sh - uses: actions/upload-artifact@v4 with: - name: spice2x + name: spice2x-ci-${{ env.COMMIT_SHORT_SHA }} path: src/spice2x/bin if-no-files-found: error \ No newline at end of file