Skip to content

Commit

Permalink
update artifact to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtharriger committed May 19, 2024
1 parent ca565ad commit 58de299
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/ci-build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- main
- test-ci-pipeline
workflow_dispatch:

jobs:
release-version:
Expand Down Expand Up @@ -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
Expand All @@ -61,7 +62,7 @@ jobs:

steps:
- name: Download updated code
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: updated-code

Expand All @@ -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
Expand All @@ -161,7 +163,7 @@ jobs:

steps:
- name: Download updated code
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: updated-code

Expand Down

0 comments on commit 58de299

Please sign in to comment.