Bump version to maa.4 #8
Workflow file for this run
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: Build & Release macOS App | |
on: | |
push: | |
tags: | |
- "*" | |
env: | |
CI: true | |
jobs: | |
build: | |
runs-on: macos-12 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Get the version | |
id: tag_version | |
run: echo ::set-output name=TAG_NAME::${GITHUB_REF/refs\/tags\//} | |
- name: Install dependencies | |
shell: bash | |
run: | | |
brew install graphicsmagick imagemagick | |
bundle install | |
npm install --global create-dmg | |
- name: Fastlane Release | |
shell: bash | |
run: fastlane release | |
env: | |
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }} | |
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | |
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 120 # x86 is slooooooow | |
- name: Exract API_KEY | |
shell: bash | |
run: 'echo "$API_KEY" > apikey.json' | |
env: | |
API_KEY: ${{secrets.APPLE_API_KEY_JSON}} | |
- name: Create DMG | |
shell: bash | |
run: | | |
create-dmg ./output/PlayCover.app ./output | |
mv ./output/*.dmg ./output/PlayCover_${{ env.TAG_NAME }}.dmg | |
env: | |
TAG_NAME: ${{ steps.tag_version.outputs.TAG_NAME }} | |
- name: Notarize DMG | |
shell: bash | |
run: | | |
fastlane notarize_dmg package:output/PlayCover_${{ env.TAG_NAME }}.dmg | |
env: | |
TAG_NAME: ${{ steps.tag_version.outputs.TAG_NAME }} | |
- name: Clean Up | |
shell: bash | |
run: rm apikey.json | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: PlayCover_${{ env.TAG_NAME }}.dmg | |
path: output/PlayCover_${{ env.TAG_NAME }}.dmg | |
env: | |
TAG_NAME: ${{ steps.tag_version.outputs.TAG_NAME }} | |
- name: Release | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: softprops/action-gh-release@v1 | |
with: | |
draft: true | |
files: | | |
output/PlayCover_${{ env.TAG_NAME }}.dmg | |
env: | |
TAG_NAME: ${{ steps.tag_version.outputs.TAG_NAME }} |