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

Automate releasing #23

Open
technicalpickles opened this issue Sep 7, 2023 · 2 comments
Open

Automate releasing #23

technicalpickles opened this issue Sep 7, 2023 · 2 comments

Comments

@technicalpickles
Copy link
Collaborator

Right now, it's me manually pulling and running rake release. Ideally, this happens automatically on main when the gemspec version changes, or if it is manually run.

Tried this, but without luck so far:

It is currently failing with:

singed 0.2.2 built to pkg/singed-0.2.2.gem.
rake aborted!
There are files that need to be committed first.
/home/runner/work/singed/singed/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/opt/hostedtoolcache/Ruby/3.1.4/x64/bin/bundle:25:in `load'
/opt/hostedtoolcache/Ruby/3.1.4/x64/bin/bundle:25:in `<main>'
Tasks: TOP => release => release:guard_clean
(See full trace by running task with --trace)

I thought it could be the cache step, but I've added vendor/bundler to .gitignore . It's unfortunate it doesn't tell you what is uncommitted.

My next thought is to add a git status to the build, but that might not trigger in the right place. If that doesn't show it, then I think it's a matter of adding rake tasks to do git status before various steps 🤔

@technicalpickles
Copy link
Collaborator Author

Made some progress by configuring a user. Now I'm hitting this:

Running `git push origin refs/heads/debug-release` failed with the following output:

remote: Permission to rubyatscale/singed.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/rubyatscale/singed/': The requested URL returned error: 403

@technicalpickles
Copy link
Collaborator Author

Different error now:

singed 0.2.2 built to pkg/singed-0.2.2.gem.
Untagging v0.2.2 due to error.
rake aborted!
Running `git tag -m Version\ 0.2.2 v0.2.2` failed with the following output:

Committer identity unknown

*** Please tell me who you are.

Run

  git config --global user.email "[email protected]"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident name (for <runner@fv-az659-258.luykedtozraezimdvwvtsy4hga.cx.internal.cloudapp.net>) not allowed

/home/runner/work/singed/singed/vendor/bundle/ruby/3.1.0/gems/rake-[13](https://github.com/rubyatscale/singed/actions/runs/8972950718/job/24642072184#step:6:14).0.6/exe/rake:27:in `<top (required)>'
/opt/hostedtoolcache/Ruby/3.1.5/x64/bin/bundle:25:in `load'
/opt/hostedtoolcache/Ruby/3.1.5/x64/bin/bundle:25:in `<main>'
Tasks: TOP => release => release:source_control_push

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

No branches or pull requests

1 participant