Skip to content

Commit

Permalink
Create release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
koki-develop committed Sep 7, 2024
1 parent 401a470 commit 3afe080
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Release

on:
push: # TODO: releaese trigger

jobs:
release:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4

- name: Build
run: |
xcodebuild \
-project ./NyaIME.xcodeproj \
-configuration Release
mkdir ./tmp/app
mv ./build/Release/NyaIME.app ./tmp/app/
- name: Build Package
run: |
xcrun pkgbuild \
--version 0 \
--root ./tmp/app \
--component-plist ./pkg.plist \
--identifier me.koki.inputmethod.NyaIME \
--install-location '/Library/Input Methods' \
./tmp/tmp.pkg
- name: Build Installer
run: |
xcrun productbuild \
--distribution distribution.xml \
--package-path ./tmp \
./tmp/NyaIME.pkg
# TODO: upload package to release
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: NyaIME
path: ./tmp/NyaIME.pkg

0 comments on commit 3afe080

Please sign in to comment.