1.3.0.2 #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: iPoPS | |
run-name: 1.3.0.${{ github.run_number }} | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
tags: | |
- "*" | |
pull_request: | |
branches: | |
- master | |
env: | |
_IS_BUILD_CANARY: false | |
_IS_GITHUB_RELEASE: false | |
_RELEASE_NAME: iPoPS | |
_RELEASE_VERSION: v0 | |
_RELEASE_CONFIGURATION: Release | |
_BUILD_BRANCH: "${{ github.ref }}" | |
_BUILD_VERSION: "1.3.0.${{ github.run_number }}" | |
# GIT: Fix reporting from stderr to stdout | |
GIT_REDIRECT_STDERR: 2>&1 | |
jobs: | |
iPoPS: | |
runs-on: macos-latest | |
timeout-minutes: 1440 | |
strategy: | |
max-parallel: 1 | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Build | |
run: ".github/workflows/build.ps1" | |
shell: pwsh | |
env: | |
GITHUB_PACKAGES_PAT: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish PR artifacts | |
if: env._IS_GITHUB_RELEASE == 'false' && success() | |
uses: actions/[email protected] | |
with: | |
name: "${{ env._RELEASE_NAME }}-${{ env._RELEASE_VERSION }}" | |
path: ".dist/*.dmg" | |
- name: Publish Canary release | |
uses: ncipollo/release-action@v1 | |
if: env._IS_GITHUB_RELEASE == 'true' && env._IS_BUILD_CANARY == 'true' && success() | |
with: | |
artifacts: ".dist/*.dmg" | |
allowUpdates: true | |
generateReleaseNotes: true | |
prerelease: true | |
removeArtifacts: true | |
tag: canary | |
name: "${{ env._RELEASE_NAME }}-${{ env._RELEASE_VERSION }}" | |
body: | | |
This is a canary build. Please be aware it may be prone to crashing and is NOT tested by anyone. | |
The App is NOT signed. You need to allow it to run in your Gatekeeper settings panel. Use this build AT YOUR OWN RISK! | |
- name: Publish Stable release | |
uses: ncipollo/release-action@v1 | |
if: env._IS_GITHUB_RELEASE == 'true' && env._IS_BUILD_CANARY == 'false' && success() | |
with: | |
artifacts: ".dist/*.dmg" | |
generateReleaseNotes: true | |
makeLatest: true | |
removeArtifacts: true | |
name: "${{ env._RELEASE_NAME }}-${{ env._RELEASE_VERSION }}" |