Skip to content

Commit

Permalink
Maintain permissions when downloading artifacts (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
malmeloo authored Oct 28, 2023
1 parent 145bdb8 commit 8473b0e
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,61 @@ jobs:
with:
name: rpi-4b-aarch64
path: dist

Collect-Artifacts:
runs-on: ubuntu-22.04
needs: [Build-PC, Build-RPI]
steps:
- name: Download ubuntu-22.04-x64
uses: actions/download-artifact@v3
with:
name: ubuntu-22.04-x64
path: ubuntu22

- name: Download ubuntu-20.04-x64
uses: actions/download-artifact@v3
with:
name: ubuntu-20.04-x64
path: ubuntu20

- name: Download macos-12-x64
uses: actions/download-artifact@v3
with:
name: macos-12-x64
path: macos

- name: Download windows-2022-x64
uses: actions/download-artifact@v3
with:
name: windows-2022-x64
path: windows

- name: Download rpi-4b-aarch64
uses: actions/download-artifact@v3
with:
name: rpi-4b-aarch64
path: rpi4b

- name: Collect artifacts
run: |
mkdir -p releases
mv ubuntu22/riitag-rpc releases/RiiTag-RPC_Ubuntu22
mv ubuntu20/riitag-rpc releases/RiiTag-RPC_Ubuntu20
mv macos/riitag-rpc releases/RiiTag-RPC_MacOS
mv windows/riitag-rpc.exe releases/RiiTag-RPC_Windows
mv rpi4b/riitag-rpc releases/RiiTag-RPC_Rpi4B
chmod -R +x releases/
tar -cvf all-artifacts.tar.bz2 releases/
- name: Upload collected artifacts
uses: actions/upload-artifact@v3
with:
name: all-artifacts
path: all-artifacts.tar.bz2

- name: Create release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
files: releases/*

0 comments on commit 8473b0e

Please sign in to comment.