-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (30 loc) · 957 Bytes
/
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
name: release
on:
push:
tags:
- 'v*.*.*'
jobs:
release:
if: github.event.repository.fork == false
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: 🏷 Get version from tag
id: tag_name
run: echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v}
shell: bash
- name: 🛒 Checkout repository
uses: actions/checkout@v2
- name: 📜 Get Changelog Entry
uses: artlaman/[email protected]
id: changelog_reader
with:
version: ${{ steps.tag_name.outputs.current_version }}
- name: ✍️ Create/update release
uses: ncipollo/release-action@v1
with:
name: Release ${{ steps.changelog_reader.outputs.version }}
body: ${{ steps.changelog_reader.outputs.changes }}
allowUpdates: true
token: ${{ secrets.AUTH_GITHUB_TOKEN }}