Skip to content

Commit b3d3aea

Browse files
committed
feat: release on create new tag
1 parent 1598c31 commit b3d3aea

File tree

3 files changed

+33
-4
lines changed

3 files changed

+33
-4
lines changed

.github/workflows/build_apk_deploygate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Build and Deploy to DeployGate
22

33
on:
4-
push:
4+
release:
55
branches:
6-
- dev # Specify the branch you want this action to trigger on
6+
- dev
77

88
jobs:
99
build:

.github/workflows/build_ios_testflight.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
name: Build and Deploy to TestFlight
12

23
on:
3-
push:
4+
release:
45
branches:
5-
- dev # Trigger on push to the main branch
6+
- dev
67

78
jobs:
89
build:
@@ -45,6 +46,7 @@ jobs:
4546
\"issuer_id\": \"$APP_STORE_CONNECT_ISSUER_ID\",
4647
\"key\": \"$APP_STORE_CONNECT_API_KEY\"
4748
}" > fastlane/AuthKey.p8
49+
4850
# Step 8: Upload to TestFlight using fastlane
4951
- name: Upload to TestFlight
5052
run: |
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Create Release
2+
on:
3+
push:
4+
# Sequence of patterns matched against refs/tags
5+
tags:
6+
- '[0-9]+.[0-9]+.[0-9]+' # Push events to matching v*, i.e. v1.0, v20.15.10
7+
8+
jobs:
9+
build:
10+
name: Create Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
- name: Create Release
16+
id: create_release
17+
uses: actions/create-release@v1
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.SECRET_TOKEN }} # This token is provided by Actions, you do not need to create your own token
20+
with:
21+
tag_name: ${{ github.ref }}
22+
release_name: Release ${{ github.ref }}
23+
body: |
24+
Changes in this Release
25+
- Release ${{ github.ref }}
26+
draft: false
27+
prerelease: false

0 commit comments

Comments
 (0)