Make relaunch updater terminate stale app #7
This file contains hidden or 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: Build and Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: streetview-wander-release | |
| cancel-in-progress: true | |
| jobs: | |
| build-release: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Build app, ZIP, and PKG | |
| run: | | |
| VERSION="0.1.${GITHUB_RUN_NUMBER}" | |
| BUILD_COMMIT="${GITHUB_SHA:0:7}" | |
| VERSION="$VERSION" BUILD_NUMBER="$GITHUB_RUN_NUMBER" BUILD_COMMIT="$BUILD_COMMIT" DEFAULT_REPOSITORY="$GITHUB_REPOSITORY" ./scripts/package.sh | |
| - name: Publish GitHub Release | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| VERSION="0.1.${GITHUB_RUN_NUMBER}" | |
| TAG="v${VERSION}" | |
| gh release create "$TAG" \ | |
| "dist/StreetViewWander.zip" \ | |
| "dist/StreetViewWander.pkg" \ | |
| "dist/StreetViewWander-${VERSION}.zip" \ | |
| "dist/StreetViewWander-${VERSION}.pkg" \ | |
| "dist/manifest.json" \ | |
| --target "$GITHUB_SHA" \ | |
| --title "StreetView Wander ${VERSION}" \ | |
| --notes "Automated build from main commit ${GITHUB_SHA}." \ | |
| --latest |