Skip to content

Commit

Permalink
Add release changelog job to pipeline (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjololo authored Aug 3, 2021
1 parent 2af2af7 commit 238a6af
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 4 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: Build release from tag
on:
push:
tags:
- 'v*.*.*'
- '*.*.*'

jobs:
test:
name: Build latest
publish:
name: Publish release
runs-on: ubuntu-latest
steps:
- name: Get version from tags
Expand Down Expand Up @@ -41,4 +41,26 @@ jobs:
KO_DOCKER_REPO: ghcr.io/${{ github.repository_owner }}
run: |
./ko login ghcr.io --username $GITHUB_ACTOR --password ${{ secrets.GITHUB_TOKEN }}
./ko publish -B --tags ${{ steps.version.outputs.tag }} .
./ko publish -B --tags v${{ steps.version.outputs.tag }} .
release:
name: Releasenotes
runs-on: ubuntu-latest
needs: publish
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build Changelog
id: github_release
uses: mikepenz/[email protected]
with:
configuration: ".release-configs/changelog-config.json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: ${{steps.github_release.outputs.changelog}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26 changes: 26 additions & 0 deletions .release-configs/changelog-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"categories": [
{
"title": "## 🚀 Enhancement",
"labels": ["enhancement"]
},
{
"title": "## 🐛 Fixes",
"labels": ["fix"]
},
{
"title": "## 🧪 Tests",
"labels": ["test"]
},
{
"title": "## 💬 Other",
"labels": ["other"]
},
{
"title": "## 📦 Dependencies",
"labels": ["dependencies"]
}
],
"max_pull_requests": 1000,
"max_back_track_time_days": 1000
}

0 comments on commit 238a6af

Please sign in to comment.