-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (35 loc) · 1.01 KB
/
Copy pathrelease.yml
File metadata and controls
42 lines (35 loc) · 1.01 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
42
name: Build and Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build:
name: Build macOS App
runs-on: macos-26
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build Swift Project
run: |
ls -la
cd zapret_src && make mac && cd ..
swift build -c release
- name: Create App Bundle and DMG
run: |
chmod +x create_app.sh
# Create dummy icons to prevent script failure if they are missing locally but script expects them
# (Assuming script uses internal SF Symbols logic now, but checking just in case)
./create_app.sh ${{ github.ref_name }}
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: "*.dmg"
generate_release_notes: true
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}