forked from QuestPDF/QuestPDF
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.36 KB
/
release.yaml
File metadata and controls
52 lines (44 loc) · 1.36 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
name: Release
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
id-token: write
jobs:
release:
name: Create GitHub release
runs-on: ubuntu-latest
outputs:
version: ${{ steps.changelog.outputs.version }}
clean_changelog: ${{ steps.changelog.outputs.clean_changelog }}
skipped: ${{ steps.changelog.outputs.skipped }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Generate version from Conventional Commits
id: changelog
uses: TriPSs/conventional-changelog-action@v6
with:
fallback-version: 1.0.0
skip-commit: true
- name: Create GitHub release
if: ${{ steps.changelog.outputs.skipped == 'false' }}
uses: softprops/action-gh-release@v3
with:
tag_name: ${{ steps.changelog.outputs.tag }}
name: ${{ steps.changelog.outputs.version }}
body: ${{ steps.changelog.outputs.clean_changelog }}
publish:
name: Publish to NuGet
needs: release
if: ${{ needs.release.result == 'success' && needs.release.outputs.skipped == 'false' }}
uses: ./.github/workflows/publish.yaml
secrets: inherit
with:
version: ${{ needs.release.outputs.version }}
notes: ${{ needs.release.outputs.clean_changelog }}