Skip to content

chore(main): release 1.7.0 (#861) #22

chore(main): release 1.7.0 (#861)

chore(main): release 1.7.0 (#861) #22

Workflow file for this run

name: Release
on:
push:
branches:
- main
workflow_dispatch:
env:
FLUTTER_VERSION: '3.24.x'
MACOS_APP_RELEASE_PATH: build/macos/Build/Products/Release
jobs:
release:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
release-type: dart
# - uses: subosito/flutter-action@v2
# if: ${{ steps.release.outputs.release_created }}
# with:
# channel: 'stable'
# flutter-version: ${{env.FLUTTER_VERSION}}
# - name: Build macOS app
# id: buildmacos
# if: ${{ steps.release.outputs.release_created }}
# run: flutter build macos --release
# - name: Codesign executable
# id: codesignmacos
# if: steps.buildmacos.outcome == 'success'
# env:
# MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }}
# MACOS_CERTIFICATE_PWD: ${{ secrets.MACOS_CERTIFICATE_PWD }}
# MACOS_IDENTITY: ${{ secrets.MACOS_IDENTITY }}
# run: |
# echo $MACOS_CERTIFICATE | base64 --decode > certificate.p12
# echo "Create Keychain"
# security create-keychain -p $MACOS_CERTIFICATE_PWD build.keychain
# echo "Assign to Login Keychain"
# security default-keychain -s build.keychain
# echo "Unlock the Login Keychain"
# security unlock-keychain -p $MACOS_CERTIFICATE_PWD build.keychain
# echo "Import certificate"
# security import certificate.p12 -k build.keychain -P $MACOS_CERTIFICATE_PWD -T /usr/bin/codesign
# echo "Set Key Partition"
# security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $MACOS_CERTIFICATE_PWD build.keychain
# echo "Find Identity"
# security find-identity
# echo "Sign the app"
# /usr/bin/codesign --force --deep -s $MACOS_IDENTITY ./$MACOS_APP_RELEASE_PATH/musicpod.app
# - name: Create a dmg
# id: createdmg
# if: steps.codesignmacos.outcome == 'success'
# run: |
# echo "Install create-dmg"
# brew install create-dmg
# cd $MACOS_APP_RELEASE_PATH
# create-dmg \
# --volname "musicpod" \
# --window-pos 200 120 \
# --window-size 950 820 \
# --icon-size 130 \
# --text-size 14 \
# --icon "musicpod.app" 260 250 \
# --hide-extension "musicpod.app" \
# --app-drop-link 540 250 \
# --hdiutil-quiet \
# "musicpod.dmg" \
# "musicpod.app"
# pwd
# ls -l
# - name: Upload Release Artifact
# if: ${{ steps.release.outputs.release_created }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: gh release upload ${{ steps.release.outputs.tag_name }} ./artifact/musicpod.dmg