Skip to content

Commit

Permalink
release.yml now downloads specific artifacts for release (#332)
Browse files Browse the repository at this point in the history
Signed-off-by: danbugs <[email protected]>
  • Loading branch information
danbugs authored Feb 22, 2023
1 parent 79b35ed commit 061d7b5
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,18 @@ jobs:

- uses: actions/download-artifact@v3
with:
path: ./
name: c-template.tar.gz
if: ${{ fromJSON(matrix.config.os == 'ubuntu-latest') }}

- uses: actions/download-artifact@v3
with:
name: rust-template.tar.gz
if: ${{ fromJSON(matrix.config.os == 'ubuntu-latest') }}

- uses: actions/download-artifact@v3
with:
name: slight-linux-x86_64.tar.gz
if: ${{ fromJSON(matrix.config.os == 'ubuntu-latest') }}

- name: "add wits, and slight-linux-x86_64 and templates tars to release"
uses: softprops/action-gh-release@v1
Expand All @@ -56,13 +67,24 @@ jobs:
wit/*.wit
if: ${{ fromJSON(matrix.config.os == 'ubuntu-latest') }}

- uses: actions/download-artifact@v3
with:
name: slight-windows-x86_64.tar.gz
if: ${{ fromJSON(matrix.config.os == 'windows-latest') }}

- name: "add slight-windows tar to release"
uses: softprops/action-gh-release@v1
with:
files: |
slight-windows-x86_64.tar.gz
if: ${{ fromJSON(matrix.config.os == 'windows-latest') }}

- uses: actions/download-artifact@v3
with:
name: slight-macos-amd64.tar.gz
if: ${{ fromJSON(matrix.config.os == 'macos-latest') &&
fromJSON(matrix.config.arch == 'amd64') }}

- name: "add slight-macos-amd64 tar to release"
uses: softprops/action-gh-release@v1
with:
Expand All @@ -71,6 +93,12 @@ jobs:
if: ${{ fromJSON(matrix.config.os == 'macos-latest') &&
fromJSON(matrix.config.arch == 'amd64') }}

- uses: actions/download-artifact@v3
with:
name: slight-macos-aarch64.tar.gz
if: ${{ fromJSON(matrix.config.os == 'macos-latest') &&
fromJSON(matrix.config.arch == 'aarch64') }}

- name: "add slight-macos-aarch64 tar to release"
uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit 061d7b5

Please sign in to comment.