Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintain permissions when downloading artifacts #40

Merged
merged 5 commits into from
Oct 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/*