mirror of
https://github.com/httpie/cli.git
synced 2024-11-29 03:03:44 +01:00
6f77e144e4
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
34 lines
962 B
YAML
34 lines
962 B
YAML
name: Release on PyPI
|
|
|
|
on:
|
|
# Add a "Trigger" button to manually start the workflow.
|
|
workflow_dispatch:
|
|
inputs:
|
|
branch:
|
|
description: "The branch, tag or SHA to release from"
|
|
required: true
|
|
default: "master"
|
|
# It could be fully automated by uncommenting following lines.
|
|
# Let's see later if we are confident enough to try it :)
|
|
# release:
|
|
# types:
|
|
# - published
|
|
|
|
jobs:
|
|
new-release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: ${{ github.event.inputs.branch }}
|
|
- name: PyPI configuration
|
|
run: |
|
|
echo "[distutils]\nindex-servers=\n httpie\n\n[httpie]\nrepository = https://upload.pypi.org/legacy/\n" > $HOME/.pypirc
|
|
- uses: actions/setup-python@v3
|
|
with:
|
|
python-version: 3.9
|
|
- run: make publish
|
|
env:
|
|
TWINE_USERNAME: __token__
|
|
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|