-
Notifications
You must be signed in to change notification settings - Fork 13
44 lines (37 loc) · 1.03 KB
/
release.yaml
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
name: "release"
on:
push:
branches: ["main"]
paths-ignore:
- ".github/**"
- "docs/**"
- "README.md"
workflow_dispatch:
jobs:
run-tests:
uses: ./.github/workflows/ci.yaml
secrets: inherit
release:
needs: [run-tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: "Cocogitto release"
id: release
uses: cocogitto/cocogitto-action@v3
with:
check: true
check-latest-tag-only: true
release: true
git-user: "github-actions"
git-user-email: "github-actions@github.com"
- name: "Generate Changelog"
run: cog changelog --at ${{ steps.release.outputs.version }} -t full_hash > GITHUB_CHANGELOG.md
- name: "Update Github release notes"
uses: softprops/action-gh-release@v1
with:
body_path: GITHUB_CHANGELOG.md
tag_name: ${{ steps.release.outputs.version }}
token: ${{ secrets.RELEASE_PAT }}