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

How to use this tool ? #123

Open
jooola opened this issue Dec 19, 2021 · 6 comments
Open

How to use this tool ? #123

jooola opened this issue Dec 19, 2021 · 6 comments
Labels

Comments

@jooola
Copy link

jooola commented Dec 19, 2021

I've been browsing the different repository to try finding documentation on how to configure or do some task. And I didn't find much documentation.

For instance I was hoping to upload the generated change log back to github from the github actions. But I couldn't find any doc to guide me.

Also I would like to release a version only by manually triggering the CI. Is there a way to do this ?

Did I miss a documentation link somewhere ?

@jooola
Copy link
Author

jooola commented Dec 19, 2021

Maybe I am asking for feature that aren't yet implemented. Is there a roadmap / epic somewhere in the project that could describe it's plans for the future ?

I also wanted to try to open a PR with a new release and keep updating this PR until it is merged.

This tool is great idea btw !

@christophwitzko
Copy link
Member

christophwitzko commented Dec 22, 2021

Hi @jooola, thanks for giving semantic-release a try, and sorry for the non-existing documentation. 😇
If you use GitHub + GitHub actions you should have a look the go-semantic-release/action repository.
With the default configuration, the changelog will be uploaded automatically to GitHub. (I am also not entirely sure if I understand your issue correctly)

To enable manually triggered releases, you would need to configure GitHub Actions with the if conditional or setup a separate release job with the workflow_dispatch event.

As it is still a small project we don't have a particular roadmap, but it usually helps to check out the issues page to find currently planned features.

Cheers, Chris

@jooola
Copy link
Author

jooola commented Dec 22, 2021

@christophwitzko Thanks for the feedback.

I would like to upload a CHANGELOG.md file generated by the CI back to the repository. I probably didn't explain my use case enough sorry.

Thanks for the tips. Maybe starting to write a FAQ or enabling discussions/question labels will provide some help for new comers ?

@jooola
Copy link
Author

jooola commented Dec 22, 2021

I guess the main trouble I have is to know what are the input/output of this tool. If I know if a CHANGELOG.md file get's generated, I could use some other actions/git to push it back to the repo.

@christophwitzko
Copy link
Member

Thank you for clarifying. I like the idea to use question labels 👍

You can use the changelog-file options to generate the CHANGELOG.md.

- uses: go-semantic-release/action@v1
   id: semrel
   with:
     github-token: ${{ secrets.GITHUB_TOKEN }}
     changelog-file: "CHANGELOG.md"

@biodrone
Copy link

biodrone commented Jan 1, 2022

Came across this whilst trying to figure out why my changelog isn't actually being generated... My step is below, it works for versioning and tagging, but it never produces an actual changelog file. I've tried manually creating it just in case but to no avail. I can see from my logs that it's outputting that a changelog is being generated but still nothing... Am I just being dense or is there some other setting needed to allow semrel to update the file and commit back?

- name: Version
        uses: go-semantic-release/action@v1
        id: semrel
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          force-bump-patch-version: true
          changelog-generator-opt: "emojis=true"
          changelog-file: "CHANGELOG.md"
          prepend: true

Log output:
image

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

No branches or pull requests

3 participants