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

Feature request: Support for dzil release command #3

Open
jonasbn opened this issue May 2, 2020 · 1 comment
Open

Feature request: Support for dzil release command #3

jonasbn opened this issue May 2, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@jonasbn
Copy link
Owner

jonasbn commented May 2, 2020

User Story

As a developer
I can use dzil release
so that I upload Perl/CPAN releases to PAUSE using Ebirah

Notes

  • dzil release builds on: Dist::Zilla::App::Command::release
  • We might need to support transport of credentials for PAUSE account.
  • The idea of saving the credential to a file readable by Dist::Zilla, does not sound right, so perhaps a mimicking of what Docker CLI does could be useful

Example from command line use:

cat DOCKERHUB_ACCESS_TOKEN | docker login -u jonasbn --password-stdin

REF: Ebirah Wiki: Development

Perhaps this should be accomplished via extending dzil:

Proposal matching Docker example:

cat PAUSE_ACCESS_TOKEN | dzil release --userid jonasbn --password-stdin

And a variation:

dzil release --userid jonasbn --password ****

Proposal for GitHub Action use:

name: Dist::Zilla Action
on: push

jobs:
  dzil:
    runs-on: ubuntu-latest
    name: "dzil release"
    steps:
      - name: Check out repository
        uses: actions/checkout@v3
      - name: Uploaded distribution release to CPAN via PAUSE
        uses: jonasbn/[email protected]
        with:
          dzil-arguments: 'release --userid jonasbn --password ${{ secrets.GITHUB_TOKEN }}'

goreleaser-action transports the token via the environment:

name: Dist::Zilla Action
on: push

jobs:
  dzil:
    runs-on: ubuntu-latest
    name: "dzil release"
    steps:
      - name: Check out repository
        uses: actions/checkout@v3
      - name: Uploaded distribution release to CPAN via PAUSE
        uses: jonasbn/[email protected]
        with:
          dzil-arguments: 'release --userid jonasbn --password ${GITHUB_TOKEN}'
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Acceptance Criteria

  1. ebirah release supports --trial
  2. ebirah release supports -j INT
  3. ebirah release can successfully upload a distribution to PAUSE
  4. ebirah can handle credentials securely

Resources and References

@jonasbn jonasbn added the enhancement New feature or request label May 2, 2020
@jonasbn jonasbn self-assigned this May 2, 2020
@jonasbn jonasbn pinned this issue Nov 27, 2020
@oalders
Copy link

oalders commented Jul 17, 2023

I would love to be able to use something like this specifically for dzil release.

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

No branches or pull requests

2 participants