added go-semantic-release
This commit is contained in:
parent
25e99bb5e6
commit
4c61917b4c
12
generate.yml
12
generate.yml
|
|
@ -152,10 +152,14 @@
|
|||
- source: gitlab-ci.yml
|
||||
dest: .gitlab-ci.yml
|
||||
- source: requirements.txt
|
||||
- source: requirements2png.yml
|
||||
dest: .github/workflows/requirements2png.yml
|
||||
- source: FUNDING.yml
|
||||
dest: .github/FUNDING.yml
|
||||
# - source: requirements2png.yml
|
||||
# dest: .github/workflows/requirements2png.yml
|
||||
# - source: FUNDING.yml
|
||||
# dest: .github/FUNDING.yml
|
||||
- source: semrelrc
|
||||
dest: .semrelrc
|
||||
- source: go-semantic-release.yml
|
||||
dest: .github/workflows/go-semantic-release.yml
|
||||
loop_control:
|
||||
label: "{{ item.source }}"
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
{{ ansible_managed | comment }}
|
||||
|
||||
name: Create a semantic release on push to main
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
|
||||
# If a 403 error occurs, make sure to set content permission to write
|
||||
# see: https://github.com/go-semantic-release/action/issues/27
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: go-semantic-release/action@v1
|
||||
id: semrel
|
||||
with:
|
||||
github-token: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}
|
||||
changelog-generator-opt: "emojis=true"
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"plugins": {
|
||||
"commit-analyzer": {
|
||||
"name": "default@^1.0.0"
|
||||
},
|
||||
"ci-condition": {
|
||||
"name": "default"
|
||||
},
|
||||
"changelog-generator": {
|
||||
"name": "default",
|
||||
"options": {
|
||||
"emojis": "true"
|
||||
}
|
||||
},
|
||||
"provider": {
|
||||
"name": "github"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue