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

Support a "Unreleased" pre-release #47

Closed
cb80 opened this issue May 6, 2021 · 3 comments · Fixed by #51
Closed

Support a "Unreleased" pre-release #47

cb80 opened this issue May 6, 2021 · 3 comments · Fixed by #51
Assignees
Labels
enhancement New feature or request v4 Release v4.x.x

Comments

@cb80
Copy link

cb80 commented May 6, 2021

Hello @anton-yurchenko

Description

https://keepachangelog.com/ defines the Unreleased section. I propose to create/update/replace a pre-release whenever a specific tag is updated e.g. a latest tag? As a pre-release it is identified as non-production ready. Also the latest tag is potentially moved with every merge to the main branch.

The benefit from my point of view is that you can automatically deliver something users can test with.

This is how it could be used:

on:
  push:
    tags:
    - 'latest'

...

    - name: Latest Release
      uses: docker://antonyurchenko/git-release:latest
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        DRAFT_RELEASE: "false"
        PRE_RELEASE: "true"
        CHANGELOG_FILE: "CHANGELOG.md"
        CHANGELOG_SECTION: "Unreleased"
        ALLOW_EMPTY_CHANGELOG: "false"
      with:
        args: |
            build/*-amd64.zip

What do you think about that?

PS: From the docs: Note: The release event is not triggered for draft releases.

Reference

@anton-yurchenko anton-yurchenko added the enhancement New feature or request label May 6, 2021
@cb80
Copy link
Author

cb80 commented May 14, 2021

I meanwhile created an action https://github.com/cb80/pubrel to get going. But I love your approach to use the changelog. Also mine cannot glob files, create a prerelease and other features. So please don't misunderstand that as "lost interest".

@anton-yurchenko
Copy link
Owner

Hello @cb80 😉
That is a great idea, which will certainly help some folks!

Right now, I am refactoring this action in an attempt to reduce the number of packages and simplify the code as a part of the upcoming v4.0.0. The recreation of the Unreleased GitHub release might be added as well, although I would like to tackle that after the refactor, possibly still as a part of the v4.

Please stay tuned in this issue

Thank you for your help 👑

@anton-yurchenko
Copy link
Owner

Unreleased support has been added in v4.1.0 🎉

unreleased

Thank you!

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

Successfully merging a pull request may close this issue.

2 participants