Skip to content

Commit

Permalink
Update artifact names in build workflow to include target and arch (#72)
Browse files Browse the repository at this point in the history
* Update artifact names in build workflow to include target and architecture

* Rename CLI and Server artifacts in build workflow

* Rename artifact names in build workflow to use hyphens instead of underscores
  • Loading branch information
thomas-senechal authored Aug 12, 2024
1 parent 3b0993b commit 1dc5589
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,14 @@ jobs:
OS: ${{ matrix.target }}
ARCH: ${{ matrix.arch }}

- name: Rename CLI artifact
run: mv build/deweb-cli${{ matrix.ext }} build/deweb-cli_${{ matrix.target }}_${{ matrix.arch }}${{ matrix.ext }}

- name: Upload CLI artifact
uses: actions/upload-artifact@v4
with:
name: deweb_cli-${{ matrix.target }}-${{ matrix.arch }}
path: build/deweb-cli${{ matrix.ext }}
name: deweb-cli_${{ matrix.target }}_${{ matrix.arch }}
path: build/deweb-cli_${{ matrix.target }}_${{ matrix.arch }}${{ matrix.ext }}

- name: Build Server
shell: bash
Expand All @@ -73,8 +76,11 @@ jobs:
OS: ${{ matrix.target }}
ARCH: ${{ matrix.arch }}

- name: Rename Server artifact
run: mv build/deweb-server${{ matrix.ext }} build/deweb-server_${{ matrix.target }}_${{ matrix.arch }}${{ matrix.ext }}

- name: Upload Server artifact
uses: actions/upload-artifact@v4
with:
name: deweb_server-${{ matrix.target }}-${{ matrix.arch }}
path: build/deweb-server${{ matrix.ext }}
name: deweb-server_${{ matrix.target }}_${{ matrix.arch }}
path: build/deweb-server_${{ matrix.target }}_${{ matrix.arch }}${{ matrix.ext }}

0 comments on commit 1dc5589

Please sign in to comment.