Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Vanloo committed Feb 19, 2024
1 parent 0c73297 commit 79f2d17
Showing 1 changed file with 15 additions and 23 deletions.
38 changes: 15 additions & 23 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ on:
type: string

jobs:
create_release_branch:
create_release:
name: Create release branch
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/python-linkplay
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Update version
Expand All @@ -25,26 +30,13 @@ jobs:
git checkout -B releases/${{ github.event.inputs.version }}
git commit --allow-empty -am "Create version ${{ github.event.inputs.version }}"
git push --set-upstream origin releases/${{ github.event.inputs.version }}
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build

pypi-publish:
runs-on: ubuntu-latest
name: Upload release to PyPI
environment:
name: pypi
url: https://pypi.org/p/python-linkplay
permissions:
id-token: write
steps:
- uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 79f2d17

Please sign in to comment.