From 8cdb3d2150fb591894d85d5ca5243f9ef6156099 Mon Sep 17 00:00:00 2001 From: Mike Vink <59492084+ivi-vink@users.noreply.github.com> Date: Tue, 21 Jan 2025 00:10:34 +0100 Subject: Squashed 'mut/dmenu-mac/' content from commit c86c277 git-subtree-dir: mut/dmenu-mac git-subtree-split: c86c2774b8c7ac19299dfdc93d2e66e1a0393326 --- .github/workflows/main.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/main.yml (limited to '.github') 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 '' -- cgit v1.2.3