-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (48 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
name: Release
on:
push:
tags:
- 'v*'
permissions: write-all
jobs:
create_release:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Pull the Repository
run: |
git config user.name mauprogramador
git config user.email sir.silvabmauricio@gmail.com
git config github.token ${{ secrets.GITHUB_TOKEN }}
git pull origin master
git fetch --tags -f
- name: Create Changelog
id: changelog
uses: TriPSs/conventional-changelog-action@latest
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
git-user-name: mauprogramador
git-user-email: sir.silvabmauricio@gmail.com
git-branch: master
skip-git-pull: true
release-count: 0
version-file: "./pyproject.toml"
version-path: tool.poetry.version
- name: Create GitHub Release
id: create_release
# uses: "marvinpinto/action-automatic-releases@latest"
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# prerelease: false
# title: Release ${{ github.ref }}
uses: actions/create-release@v1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
draft: false
prerelease: false