-
Notifications
You must be signed in to change notification settings - Fork 7
55 lines (42 loc) · 1.22 KB
/
release.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Release
on:
workflow_dispatch:
jobs:
TAGGING:
runs-on: macos-13
environment: Tag
outputs:
output1: ${{ steps.tagging.outputs.tag }}
steps:
- uses: actions/checkout@v4
- name: Switching Podspec to release mode
run: |
sh .github/release_mode.sh
- id: tagging
name: Add git tag
run: |
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} sh .github/tag.sh
PODS_PUSH:
name: "CocoaPods push"
runs-on: macos-13
environment: CocoaPods
needs: TAGGING
steps:
- uses: actions/checkout@v4
- run: git pull
- name: Updating Cocoapods
run: gem install cocoapods
- name: Updating CocoaPods repo
run: pod repo update
- name: CocoaPods push
run: |
PODS_USER=${{ secrets.PODS_USER }} PODS_PASS=${{ secrets.PODS_PASS }} sh .github/cocoapods_publish.sh
- name: Prepare release notes
run: |
sh .github/release_notes.sh
- uses: ncipollo/release-action@v1
with:
tag: ${{needs.TAGGING.outputs.output1}}
bodyFile: ".github/release_notes_template.md"
token: ${{ secrets.GITHUB_TOKEN }}
draft: true