-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 961 Bytes
/
Copy pathpublish.yml
File metadata and controls
41 lines (35 loc) · 961 Bytes
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: Publish
on:
workflow_dispatch:
push:
tags:
- 'v*'
jobs:
main:
runs-on: macOS-latest
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get release Name
shell: python
run: |
import os
ref = os.environ['GITHUB_REF']
name = ref[ref.rfind('/') + 2:]
with open(os.environ['GITHUB_ENV'], 'w') as env:
print('RELEASE_NAME=' + name, file=env)
with open('VERSION', 'wt') as ver:
print(name, file=ver)
- name: Zip Headers
shell: bash
run: tar -czf objc-helpers-${{ env.RELEASE_NAME }}.tar.gz include LICENSE VERSION CHANGELOG.md
- name: Make release
uses: softprops/action-gh-release@v1
with:
draft: true
prerelease: false
name: ${{ env.RELEASE_NAME }}
body: ...edit me...
files: |
objc-helpers-${{ env.RELEASE_NAME }}.tar.gz