Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use release drafter to publish new releases easily #63

Open
Joonalai opened this issue May 13, 2024 · 1 comment
Open

Use release drafter to publish new releases easily #63

Joonalai opened this issue May 13, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Joonalai
Copy link
Contributor

Expected behaviour
Release drafter could be adopted in the project to make it easier to publish new releases.

Current behaviour
Publishing releases require lot of manual work.

Describe alternatives you've considered
Continue using the current release progress.

Additional context
Here are some files that I have been drafting for this.

Contents of .github/workflows/release-drafter.yml

name: Release Drafter

on:
  push:
    branches:
      - main
  # pull_request event is required only for autolabeler
  pull_request:
    types: [opened, reopened, synchronize]

permissions:
  contents: read

jobs:
  update_release_draft:
    permissions:
      # write permission is required to create a github release
      contents: write
      # write permission is required for autolabeler
      # otherwise, read permission is required at least
      pull-requests: write
    runs-on: ubuntu-latest
    steps:
      # Drafts your next Release notes as Pull Requests are merged into "master"
      - uses: release-drafter/release-drafter@v6
        # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
        # with:
        #   config-name: my-config.yml
        #   disable-autolabeler: true
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Contents of .github/release-drafter.yml

name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
version-resolver:
  major:
    labels:
      - 'major'
  minor:
    labels:
      - 'minor'
  patch:
    labels:
      - 'patch'
  default: patch
template: |
  ## Changes

  $CHANGES
@Joonalai Joonalai added the enhancement New feature or request label May 13, 2024
@Joonalai
Copy link
Contributor Author

@LKajan I think it would be easier for you to implement this since you have push right to the repository and can thus experiment with this more easily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant