Comments (4)
Just flagging: I'll send a PR for the environment docs part later today, time permitting.
from guides.
For context: the equivalent docs on the PyPI side: https://docs.pypi.org/trusted-publishers/using-a-publisher/
Specifically, this is the example we use on PyPI:
jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
# retrieve your distributions here
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
This can be closely adapted to RubyGems, so I'll file a PR later today.
from guides.
It's probably also worth mentioning that the release-gem
GitHub Action requires that your project be using rake-release
. Unfortunately, that doesn't really work for my intended workflow because rake-release
performs a git tag and git push when releasing. I'd like for my release process to be triggered on git tag, so rake-release
then creates an unnecessary tag. I also received this error from release-gem
when it attempted to create the tag:
Tagged v0.5.0.
fatal: You are not currently on a branch.
To push the history leading to the current (detached HEAD)
state now, use
git push origin HEAD:<name-of-remote-branch>
Untagging v0.5.0 due to error.
rake aborted!
Running `["git", "push", "--quiet"]` failed, exit code: 128
All in all, it'd be nice if release-gem
could do a simple gem build
-> gem push
.
EDIT: some additional context: rubygems/release-gem#3.
from guides.
"Later today" really meant a week, but I've opened #356 for this!
from guides.
Related Issues (20)
- Enable HTTPS for guides.rubygems.org HOT 1
- Misalignment in gem install on Command Reference HOT 1
- Rebuild command-reference for RubyGems 3.0.2
- command-reference.md - 'Options' parsing - CommonMark issue HOT 2
- Minimum `gem` command version for MFA support? HOT 2
- zero width spaces between consecutive hyphens in docs HOT 3
- Some characters are replaced with spaces in Gem::Specification#files document HOT 9
- Remove references to `-rubygems`. HOT 3
- Update overview of how plugins work to reflect improvement in plugin system
- Gems with extensions: Gem layout: confusing content HOT 1
- Deploy guides with universal deploy script HOT 1
- `files` examples in specification reference have extra spaces HOT 1
- GEM BUILD is not correct in command reference on web (even with RubyGems 3.2.19) HOT 3
- Review API documentation on guides.rubygems.org HOT 8
- Don't hardcode path to private signing_key HOT 2
- Overhaul each individual page
- Rename `gh-pages` to `main` (or `master`) HOT 3
- performance problems with RubyGems and Artifactory HOT 6
- Sample .gemrc from "using-s3-source" doc is not working anymore HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from guides.