diff options
| author | Mike Vink <59492084+ivi-vink@users.noreply.github.com> | 2025-01-21 00:10:34 +0100 |
|---|---|---|
| committer | Mike Vink <59492084+ivi-vink@users.noreply.github.com> | 2025-01-21 00:10:34 +0100 |
| commit | 8cdb3d2150fb591894d85d5ca5243f9ef6156099 (patch) | |
| tree | a8a2a325acafccfc54fdc9aeb16f32248f81dc52 /.github | |
Squashed 'mut/dmenu-mac/' content from commit c86c277
git-subtree-dir: mut/dmenu-mac
git-subtree-split: c86c2774b8c7ac19299dfdc93d2e66e1a0393326
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/main.yml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..2164189 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,40 @@ +name: Build + +on: [push] + +jobs: + build: + runs-on: macos-12 + + steps: + - uses: actions/checkout@v1 + + - name: Lint + run: swiftlint --strict + + - name: Build + run: xcodebuild + -scheme dmenu-mac + -archivePath dmenu-mac.xcarchive archive + + - name: Package + run: xcodebuild + -exportArchive + -archivePath dmenu-mac.xcarchive + -exportOptionsPlist mac-application-archive.plist + -exportPath . + + - name: Compress + run: zip -r dmenu-mac.zip dmenu-mac.app + + - uses: actions/upload-artifact@v1 + with: + name: dmenu-mac.zip + path: dmenu-mac.zip + + - name: Release + if: startsWith(github.ref, 'refs/tags/') + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_USER: "user" + run: hub release edit ${GITHUB_REF//refs\/tags\//} -a dmenu-mac.zip -m '' |
