From 95b272b210a104ec52c87419435b76fd086ecca2 Mon Sep 17 00:00:00 2001 From: Solomon Jacobs Date: Tue, 7 Nov 2023 18:11:10 +0100 Subject: [PATCH] Combine workflows to create release are artifacts Currently, this creates a single file `executable.zip`. This can be later be used to create a release. CMK-14985 --- .github/workflows/release.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..a21059f5 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,26 @@ +--- +name: "Upload all artifacts" +on: + push: + paths: + - .github/workflows/release.yaml + - .github/workflows/rcc.yaml + - .github/workflows/robotmk.yaml + pull_request: + paths: + - .github/workflows/release.yaml + - .github/workflows/rcc.yaml + - .github/workflows/robotmk.yaml + +jobs: + build_rcc: + uses: ./.github/workflows/rcc.yaml + build_robotmk: + uses: ./.github/workflows/robotmk.yaml + release: + runs-on: ubuntu-latest + needs: [build_rcc, build_robotmk] + steps: + - uses: actions/download-artifact@v3 + + - run: zip -r executables.zip artifact