forked from acts-project/acts
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.1 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
name: Release
on:
push:
branches:
- 'releases'
- 'release/**'
jobs:
release:
name: Make release
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install git-cliff
run: |
curl -L https://github.com/orhun/git-cliff/releases/download/v2.3.0/git-cliff-2.3.0-x86_64-unknown-linux-musl.tar.gz > git-cliff.tar.gz
echo "3adde9625195825db9a59dd954fc90604172ba4b git-cliff.tar.gz" | shasum -c
mkdir git-cliff
tar xzf git-cliff.tar.gz --strip-components 1 --directory git-cliff
cp git-cliff/git-cliff /usr/local/bin/git-cliff
- name: Create release
env:
# for gh cli
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# for git-cliff
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
CI/release.sh