mirror of
https://github.com/andrewthetechie/py-healthchecks.io.git
synced 2025-12-06 09:38:33 +01:00
ci: update release yaml (#659)
This commit is contained in:
29
.github/workflows/release.yml
vendored
29
.github/workflows/release.yml
vendored
@@ -8,32 +8,27 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
name: Release
|
name: Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
environment:
|
||||||
|
name: pypi
|
||||||
|
url: https://pypi.org/p/healthchecks-io
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repository
|
- name: Check out the repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4.1.4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 2
|
fetch-depth: 2
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5.1.0
|
uses: actions/setup-python@v5.1.0
|
||||||
with:
|
with:
|
||||||
python-version: "3.10"
|
python-version: "3.11"
|
||||||
|
- name: Install pip and poetry
|
||||||
- name: Upgrade pip
|
|
||||||
run: |
|
run: |
|
||||||
pip install --constraint=.github/workflows/constraints.txt pip
|
pip install --upgrade --constraint .github/workflows/constraints.txt pip poetry
|
||||||
pip --version
|
pip --version
|
||||||
|
|
||||||
- name: Install Poetry
|
|
||||||
run: |
|
|
||||||
pip install --constraint=.github/workflows/constraints.txt poetry poetry-dynamic-versioning
|
|
||||||
poetry --version
|
poetry --version
|
||||||
|
|
||||||
- name: Build package
|
- name: Build package
|
||||||
run: |
|
run: |
|
||||||
poetry build --ansi
|
poetry build
|
||||||
|
- name: Publish package distributions to PyPI
|
||||||
- name: Publish package on PyPI
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
uses: pypa/gh-action-pypi-publish@v1.8.14
|
|
||||||
with:
|
|
||||||
user: __token__
|
|
||||||
password: ${{ secrets.PYPI_TOKEN }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user