mirror of
https://github.com/josegonzalez/python-github-backup.git
synced 2025-12-24 16:41:10 +01:00
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
name: automatic-release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
release_type:
|
|
description: Release type
|
|
required: true
|
|
type: choice
|
|
options:
|
|
- patch
|
|
- minor
|
|
- major
|
|
|
|
jobs:
|
|
release:
|
|
name: Release
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
ssh-key: ${{ secrets.DEPLOY_PRIVATE_KEY }}
|
|
- name: Setup Git
|
|
run: |
|
|
git config --local user.email "action@github.com"
|
|
git config --local user.name "GitHub Action"
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.8'
|
|
- name: Install prerequisites
|
|
run: pip install -r release-requirements.txt
|
|
- name: Execute release
|
|
env:
|
|
SEMVER_BUMP: ${{ github.event.inputs.release_type }}
|
|
TWINE_REPOSITORY: ${{ vars.TWINE_REPOSITORY }}
|
|
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
|
|
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
|
|
run: ./release $SEMVER_BUMP
|