Skip to content

Commit

Permalink
Small github update
Browse files Browse the repository at this point in the history
* Small GitHub update
  • Loading branch information
huizebruin committed Jun 29, 2024
1 parent b1dfd74 commit 97a807c
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
name-template: "v$RESOLVED_VERSION"
tag-template: "$RESOLVED_VERSION"
change-template: "- #$NUMBER $TITLE @$AUTHOR"
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&'
sort-direction: ascending

categories:
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/release-drafter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,23 @@ on:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize

permissions:
contents: read

jobs:
update_release_draft:
name: ✏️ Draft release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: read
pull-requests: write
checks: write
name: ✏️ Draft release
runs-on: ubuntu-latest
steps:
- name: 🚀 Run Release Drafter
uses: release-drafter/release-drafter@v6.0.0
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'

jobs:
release:
permissions:
contents: write
pull-requests: write
id-token: write
runs-on: ubuntu-latest
steps:
- name: Get variables
id: version
run: echo "::set-output name=version::${GITHUB_REF#refs/tags/}"

- uses: actions/checkout@v4
with:
ref: ${{ steps.version.outputs.version }}

- uses: release-drafter/release-drafter@v6.0.0
with:
tag: ${{ steps.version.outputs.version }}
name: v${{ steps.version.outputs.version }}
version: ${{ steps.version.outputs.version }}
publish: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }

0 comments on commit 97a807c

Please sign in to comment.