diff --git a/.github/workflows/ci-build-release.yml b/.github/workflows/ci-build-release.yml index 036988d..7869b8d 100644 --- a/.github/workflows/ci-build-release.yml +++ b/.github/workflows/ci-build-release.yml @@ -5,7 +5,6 @@ on: branches: - main - test-ci-pipeline - workflow_dispatch: jobs: release-version: @@ -39,16 +38,18 @@ jobs: run: zip -r updated-code.zip . - name: Upload updated code - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: updated-code path: updated-code.zip + if-no-files-found: error - name: Upload release notes - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: release-notes path: RELEASE_NOTES.md + if-no-files-found: error build: needs: release-version @@ -61,7 +62,7 @@ jobs: steps: - name: Download updated code - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: updated-code @@ -86,55 +87,56 @@ jobs: run: clojure -T:build ci - name: Archive build artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: clj-mergetool-${{ matrix.os }}-${{ matrix.arch }} path: target/clj-mergetool${{ matrix.os == 'windows-latest' && '.exe' || '' }} + if-no-files-found: error release: - # if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' needs: build runs-on: ubuntu-latest steps: - name: Download build artifacts for Linux amd64 - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: clj-mergetool-ubuntu-latest-amd64 path: target/clj-mergetool-linux-amd64 - name: Download build artifacts for Linux arm64 - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: clj-mergetool-ubuntu-latest-arm64 path: target/clj-mergetool-linux-arm64 - name: Download build artifacts for Windows amd64 - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: clj-mergetool-windows-latest-amd64 path: target/clj-mergetool-windows-amd64.exe - name: Download build artifacts for Windows arm64 - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: clj-mergetool-windows-latest-arm64 path: target/clj-mergetool-windows-arm64.exe - name: Download build artifacts for macOS amd64 - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: clj-mergetool-macos-latest-amd64 path: target/clj-mergetool-macos-amd64 - name: Download build artifacts for macOS arm64 - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: clj-mergetool-macos-latest-arm64 path: target/clj-mergetool-macos-arm64 - name: Download release notes - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: release-notes path: RELEASE_NOTES.md @@ -161,7 +163,7 @@ jobs: steps: - name: Download updated code - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: updated-code