release workflow run name #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release-workflow-name | |
run-name: release workflow run name | |
on: | |
workflow_dispatch: | |
inputs: | |
github-environment-identifier: | |
description: name of protected Github environment | |
required: true | |
type: environment | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
release-job-identifier: | |
name: release job name | |
runs-on: ubuntu-latest | |
environment: ${{ inputs.github-environment-identifier }} | |
steps: | |
- name: checkout commit | |
uses: actions/checkout@v4 | |
- name: set up python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
check-latest: true | |
architecture: x64 | |
cache: pip | |
- name: build and release wheel | |
env: | |
TWINE_REPOSITORY: ${{ secrets.PYPI_REPOSITORY }} | |
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | |
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
uses: ./.github/actions/nox-sessions-action-identifier | |
with: | |
session-name-input-identifier: build | |
- name: upload wheel | |
uses: actions/upload-artifact@v4 | |
with: | |
name: release | |
path: ./dist |