diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..699d8d79 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,31 @@ +--- +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 + + - uses: actions/upload-artifact@v3 + with: + path: ${{ github.workspace }}/executables.zip + if-no-files-found: error