-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yaml
More file actions
56 lines (49 loc) · 1.41 KB
/
Copy pathaction.yaml
File metadata and controls
56 lines (49 loc) · 1.41 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: GitHub Auto Publish
description: >
Automate publish a GitHub release if find an unpublished version in
`CHANGELOG.md` (`Keep a Changelog` format).
author: Alireza Hosseini
branding:
icon: upload-cloud
color: green
inputs:
github-token:
description: GitHub token.
required: true
files:
description: Files to be uploaded as release assets.
required: false
default: ''
runs:
using: composite
steps:
- name: Install dependencies
run: >
python3 -m pip install
-r ${{ github.action_path }}/requirements/main.txt
shell: bash
- name: Get publish info
id: publish-info
run: >
python3 ${{ github.action_path }}/scripts/publish_info.py
${{ inputs.github-token }}
${{ github.repository }}
shell: bash
- name: Show new version
run: echo version=${{ steps.publish-info.outputs.version }}
shell: bash
- name: Create release notes
run: >
python3 ${{ github.action_path }}/scripts/create_release_notes.py
${{ steps.publish-info.outputs.version }}
shell: bash
- name: Publish GitHub release
run: >
gh release create
${{ steps.publish-info.outputs.version }}
${{ inputs.files }}
--title "${{ steps.publish-info.outputs.version }}"
--notes-file RELEASE_NOTES.md
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.github-token }}