-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (49 loc) · 1.57 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
56
57
58
59
name: Releases
on:
push:
branches:
- main
permissions:
contents: write
jobs:
release:
if: github.repository_owner == 'onesoft-sudo'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js v21
uses: actions/setup-node@v2
with:
node-version: "21"
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Prepare Git
run: |
echo "${{ secrets.COMMIT_GPG_KEY }}" > private.key
gpg --import private.key
rm -f private.key
git config --global user.signingkey "6AE7B08C68169452"
git config --global commit.gpgsign true
- name: Conventional Changelog Action
id: changelog
uses: TriPSs/conventional-changelog-action@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
version-file: "./package.json"
git-user-name: "Conventional Changelog Action"
git-user-email: rakinar2@onesoftnet.eu.org
git-message: |
release: {version} [skip ci]
Signed-off-by: Ar Rakin <rakinar2@onesoftnet.eu.org>
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ steps.changelog.outputs.tag }}
name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}