-
Notifications
You must be signed in to change notification settings - Fork 4
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
ci: Fix submit workflow #35
Conversation
@@ -55,6 +55,7 @@ jobs: | |||
with: | |||
path: .output/*.zip | |||
if-no-files-found: error | |||
include-hidden-files: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yeah, haven't used this since this action started ignoring hidden files. Thanks!
.github/workflows/submit.yml
Outdated
run: pnpx changelogen@latest gh release ${{ steps.version.outputs.newVersion }} --token ${{ github.token }} | ||
run: gh release create v${{ steps.version.outputs.newVersion }} .output/*.zip -F CHANGELOG.md | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changelogen gh release
just syncs the changelog with the latest release, it doesn't regenerate the changelog or anything like that. So these are doing almost the same thing.
The -F CHANGELOG.md
is using your entire changelog as your release notes... Which I don't think you want?
I don't know why github.token
worked for me and not for you, weird. You can replace it with secrets.GITHUB_TOKEN
like you did, that's fine.
And uploading the zip files as artifacts would be a good idea...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I was confused with changelogen gh release
command, not realizing it's a subcommand of changelogen package. So, it might be working correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reverted the changelogen step, and added a seperate one for uploading ZIPs to release.
Hi! I was using your workflow as an example and ran into some issues.
.output
listed in.gitignore
gh
command didn't work for me.changelogen
again if we have CHANGELOG.md, just pass it togh
command.env
.