Skip to content

Instantly share code, notes, and snippets.

@DargonLee
Last active May 26, 2023 03:28
Show Gist options
  • Save DargonLee/917de1909fa17e181a872ef62af6a358 to your computer and use it in GitHub Desktop.
Save DargonLee/917de1909fa17e181a872ef62af6a358 to your computer and use it in GitHub Desktop.
name: build-mac-actions
on: [push]
run-name: ${{ github.actor }} is package mac app actions
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: "stable"
architecture: x64
- run: flutter pub get
- run: flutter build macos
- run: ls ${{ github.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."
- run: mkdir build/macos/Build/Products/Release/EasyPasta
- run: mv build/macos/Build/Products/Release/EasyPasta.app build/macos/Build/Products/Release/EasyPasta
- name: Publish Mac Artefacts
uses: actions/upload-artifact@v1
with:
name: release-mac-app
path: build/macos/Build/Products/Release/EasyPasta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment