Skip to content

Commit 3c3e54f

Browse files
authored
Change release workflow (#19)
No more release.yml, integrates into build-and-release.yml
1 parent eefec0b commit 3c3e54f

2 files changed

Lines changed: 20 additions & 32 deletions

File tree

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build
1+
name: Build and Release
22

33
on:
44
workflow_dispatch:
@@ -86,3 +86,22 @@ jobs:
8686
with:
8787
name: linux-app
8888
path: build/linux/x64/release/bundle
89+
release:
90+
name: Create Release
91+
if: ${{ github.ref == 'refs/heads/main' && startsWith(github.ref, 'refs/tags/v') }}
92+
needs: [build-android, build-ios, build-macos, build-windows, build-linux]
93+
runs-on: ubuntu-latest
94+
steps:
95+
- uses: actions/download-artifact@v4
96+
with:
97+
path: artifacts
98+
- uses: softprops/action-gh-release@v2
99+
with:
100+
files: |
101+
artifacts/android-apk/app-release.apk
102+
artifacts/ios-app/Runner.app
103+
artifacts/macos-app/VPNclient.app
104+
artifacts/windows-app/VPNclient.exe
105+
artifacts/linux-app/bundle/
106+
env:
107+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)