Skip to content

Commit

Permalink
fix: change GH action up/download-artifact to v4
Browse files Browse the repository at this point in the history
- fixes broken GH action
  • Loading branch information
teleclimber committed Sep 27, 2024
1 parent 51734c6 commit 5b0af98
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

# ds-host
- name: Download frontend-ds-host
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: frontend-ds-host
path: frontend-ds-host/dist/
Expand All @@ -43,14 +43,14 @@ jobs:
working-directory: dist/bin

- name: Upload ds-host archive
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ds-host-amd64-linux.tar.gz
path: dist/bin/ds-host-amd64-linux.tar.gz

# ds-dev:
- name: Download frontend-ds-dev
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: frontend-ds-dev
path: frontend-ds-dev/dist/
Expand All @@ -62,7 +62,7 @@ jobs:
working-directory: dist/bin

- name: Upload ds-dev archive
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ds-dev-amd64-linux.tar.gz
path: dist/bin/ds-dev-amd64-linux.tar.gz
Expand All @@ -84,7 +84,7 @@ jobs:
go-version: 1.21

- name: Download frontend-ds-dev
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: frontend-ds-dev
path: frontend-ds-dev/dist/
Expand All @@ -97,7 +97,7 @@ jobs:
working-directory: dist/bin

- name: Upload ds-dev archive
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ds-dev-amd64-darwin.tar.gz
path: dist/bin/ds-dev-amd64-darwin.tar.gz
Expand All @@ -112,13 +112,13 @@ jobs:
- name: Release notes
run: git log $(git tag --list --sort=-version:refname "v*" | head -n 2 | tail -n 1)..HEAD --oneline > CHANGELOG.txt

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: ds-host-amd64-linux.tar.gz
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: ds-dev-amd64-linux.tar.gz
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: ds-dev-amd64-darwin.tar.gz

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
working-directory: frontend-ds-host

- name: Upload frontend for ds-host
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: frontend-ds-host
path: frontend-ds-host/dist/
Expand All @@ -25,7 +25,7 @@ jobs:
working-directory: frontend-ds-dev

- name: Upload frontend for ds-dev
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: frontend-ds-dev
path: frontend-ds-dev/dist/
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ jobs:
run: sudo apt-get install -y bubblewrap

- name: Download frontend-ds-host
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: frontend-ds-host
path: frontend-ds-host/dist/

- name: Download frontend-ds-dev
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: frontend-ds-dev
path: frontend-ds-dev/dist/
Expand All @@ -54,13 +54,13 @@ jobs:
run: go build -ldflags="-X main.cmd_version=`git describe --tags --dirty`" -o dist/bin/ds-dev ./cmd/ds-dev

- name: Upload ds-host
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ds-host
path: dist/bin/ds-host

- name: Upload ds-dev
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ds-dev
path: dist/bin/ds-dev

0 comments on commit 5b0af98

Please sign in to comment.