singed icon indicating copy to clipboard operation
singed copied to clipboard

Automate releasing

Open technicalpickles opened this issue 2 years ago • 2 comments
trafficstars

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:

  • https://github.com/rubyatscale/singed/pull/20
  • https://github.com/rubyatscale/singed/pull/22

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 avatar Sep 07 '23 12:09 technicalpickles

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 avatar Sep 07 '23 14:09 technicalpickles

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

technicalpickles avatar May 07 '24 13:05 technicalpickles