diff --git a/.github/workflows/tags.yaml b/.github/workflows/tags.yaml index 7d0fdd2..b80bda9 100644 --- a/.github/workflows/tags.yaml +++ b/.github/workflows/tags.yaml @@ -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 @@ -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 }} . \ No newline at end of file + ./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/release-changelog-builder-action@v2.1.0 + 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 }} \ No newline at end of file diff --git a/.release-configs/changelog-config.json b/.release-configs/changelog-config.json new file mode 100644 index 0000000..2f591e2 --- /dev/null +++ b/.release-configs/changelog-config.json @@ -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 +} \ No newline at end of file