-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.07 KB
/
release.yml
File metadata and controls
41 lines (33 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build and Release
on:
push:
branches:
- main
jobs:
build-and-release:
runs-on: macos-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run tests
run: swift test
- name: Build app bundle
run: ./build-app.sh release
- name: Create zip archive
run: ditto -c -k --sequesterRsrc --keepParent Slideshow.app Slideshow.zip
- name: Get version
id: version
run: |
VERSION=$(defaults read "$(pwd)/Resources/Info.plist" CFBundleShortVersionString)
BUILD=$(defaults read "$(pwd)/Resources/Info.plist" CFBundleVersion)
echo "version=v${VERSION}" >> "$GITHUB_OUTPUT"
echo "tag=v${VERSION}-build.${BUILD}" >> "$GITHUB_OUTPUT"
- name: Create release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.version.outputs.tag }}
name: Slideshow ${{ steps.version.outputs.version }}
generate_release_notes: true
files: Slideshow.zip