Skip to content

Commit

Permalink
Work on attaching artifacts to release
Browse files Browse the repository at this point in the history
  • Loading branch information
flokuep committed Apr 24, 2024
1 parent e9722a6 commit 07717c8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/build-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,27 @@ jobs:
matrix:
build:
- label: "Windows_x86"
url: ${{needs.build-windows.outputs.x86}}
artifact-name: ${{needs.build-windows.outputs.x86}}
- label: "Windows_x64"
url: ${{needs.build-windows.outputs.x64}}
artifact-name: ${{needs.build-windows.outputs.x64}}

runs-on: ubuntu-latest
steps:
- name: Download artifact
run: "wget --header='Authorization: token ${GITHUB_TOKEN}' ${{ matrix.build.url }} -O 'Vocaluxe_Nightly_${{ matrix.build.label}}.zip'"
id: download-artifact
uses: actions/download-artifact@v4
with:
name: ${{ matrix.build.artifact-name }}

- name: Zip files
run: |
cd ${{ steps.download-artifact.outputs.download-path }}
7z a '../${{ matrix.build.artifact-name }}.zip'
- name: Attach to release
uses: softprops/action-gh-release@v2
with:
files: Vocaluxe_Nightly_${{ matrix.build.label}}.zip
files: ${{ matrix.build.artifact-name }}.zip
tag: Nightly


7 changes: 4 additions & 3 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
runs-on: windows-latest # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
env:
Solution_Name: Vocaluxe.sln # Replace with your solution name, i.e. MyWpfApp.sln.
Solution_Name: Vocaluxe.sln
Artifact_Name: Vocaluxe_Nightly_${{ matrix.platform }}

outputs:
x86: ${{ steps.create-output.outputs.x86 }}
Expand Down Expand Up @@ -58,9 +59,9 @@ jobs:
id: upload-artifact
uses: actions/upload-artifact@v4
with:
name: Vocaluxe_Nightly_${{ matrix.platform }}
name: ${{ env.Artifact_Name }}
path: Output

- name: Create output
id: create-output
run: echo "${{ matrix.platform }}=${{ steps.upload-artifact.outputs.artifact-url}}" >> $ENV:GITHUB_OUTPUT
run: echo "${{ matrix.platform }}=${{ env.Artifact_Name }}" >> $ENV:GITHUB_OUTPUT

0 comments on commit 07717c8

Please sign in to comment.