Skip to content

Commit

Permalink
ci: update release yaml (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewthetechie authored May 5, 2024
1 parent 50f8bba commit 4e0bf29
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,27 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/healthchecks-io
permissions:
id-token: write
steps:
- name: Check out the repository
uses: actions/checkout@v4
uses: actions/checkout@v4.1.4
with:
fetch-depth: 2
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.10"

- name: Upgrade pip
python-version: "3.11"
- name: Install pip and poetry
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip install --upgrade --constraint .github/workflows/constraints.txt pip poetry
pip --version
- name: Install Poetry
run: |
pip install --constraint=.github/workflows/constraints.txt poetry poetry-dynamic-versioning
poetry --version
- name: Build package
run: |
poetry build --ansi
- name: Publish package on PyPI
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 4e0bf29

Please sign in to comment.