|
| 1 | +# This is a basic workflow to help you get started with Actions |
| 2 | + |
| 3 | +name: build-and-release |
| 4 | + |
| 5 | +# Controls when the workflow will run |
| 6 | +on: |
| 7 | + |
| 8 | + # Trigger on a push |
| 9 | + #push: |
| 10 | + |
| 11 | + # Trigger on a published release |
| 12 | + release: |
| 13 | + types: [published] |
| 14 | + |
| 15 | + # Allows you to run this workflow manually from the Actions tab |
| 16 | + workflow_dispatch: |
| 17 | + |
| 18 | +# A workflow run is made up of one or more jobs that can run sequentially or in parallel |
| 19 | +jobs: |
| 20 | + # Build the installer on mac |
| 21 | + call-macos-build: |
| 22 | + uses: ./.github/workflows/build-macos.yml |
| 23 | + |
| 24 | + call-linux-build: |
| 25 | + uses: ./.github/workflows/build-linux.yml |
| 26 | + |
| 27 | + call-windows-build: |
| 28 | + uses: ./.github/workflows/build-windows.yml |
| 29 | + |
| 30 | + call-python-build: |
| 31 | + uses: ./.github/workflows/build-python.yml |
| 32 | + |
| 33 | + # Using the outputs of the build |
| 34 | + deploy-builds: |
| 35 | + |
| 36 | + # Only do this on a release - note - filtering release types in the above "on:" statement |
| 37 | + if: github.event_name == 'release' |
| 38 | + runs-on: ubuntu-latest |
| 39 | + needs: [call-macos-build, call-linux-build, call-windows-build, call-python-build] |
| 40 | + steps: |
| 41 | + # Download the generated app files that are part of the release |
| 42 | + - uses: actions/download-artifact@v3 |
| 43 | + with: |
| 44 | + name: ${{ needs.call-macos-build.outputs.build-file }} |
| 45 | + - uses: actions/download-artifact@v3 |
| 46 | + with: |
| 47 | + name: ${{ needs.call-linux-build.outputs.build-file }} |
| 48 | + - uses: actions/download-artifact@v3 |
| 49 | + with: |
| 50 | + name: ${{ needs.call-windows-build.outputs.build-file }} |
| 51 | + - uses: actions/download-artifact@v3 |
| 52 | + with: |
| 53 | + name: ${{ needs.call-python-build.outputs.build-file }} |
| 54 | + - name: Output Listing |
| 55 | + run: ls -la |
| 56 | + |
| 57 | + - name: Publish Release |
| 58 | + uses: softprops/action-gh-release@v1 |
| 59 | + with: |
| 60 | + files: | |
| 61 | + ${{ needs.call-macos-build.outputs.build-file }} |
| 62 | + ${{ needs.call-linux-build.outputs.build-file }} |
| 63 | + ${{ needs.call-windows-build.outputs.build-file }} |
| 64 | + ${{ needs.call-python-build.outputs.build-package }} |
| 65 | +
|
0 commit comments