GithubHelp home page GithubHelp logo

Comments (4)

woodruffw avatar woodruffw commented on June 23, 2024 1

Just flagging: I'll send a PR for the environment docs part later today, time permitting.

from guides.

woodruffw avatar woodruffw commented on June 23, 2024

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.

mschwager avatar mschwager commented on June 23, 2024

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.

woodruffw avatar woodruffw commented on June 23, 2024

"Later today" really meant a week, but I've opened #356 for this!

from guides.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.