|
@@ -13,13 +13,11 @@ jobs:
|
|
steps:
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/checkout@v2
|
|
- name: set up Python
|
|
- name: set up Python
|
|
- uses: actions/setup-python@v2
|
|
|
|
|
|
+ uses: actions/setup-python@v5
|
|
with:
|
|
with:
|
|
python-version: "3.x"
|
|
python-version: "3.x"
|
|
- name: set up Poetry
|
|
- name: set up Poetry
|
|
- uses: abatilo/actions-poetry@v2.0.0
|
|
|
|
- with:
|
|
|
|
- poetry-version: "1.3.1"
|
|
|
|
|
|
+ uses: abatilo/actions-poetry@v3
|
|
- name: get version
|
|
- name: get version
|
|
id: get_version
|
|
id: get_version
|
|
run: echo "VERSION=$(echo ${GITHUB_REF/refs\/tags\//})" >> $GITHUB_ENV
|
|
run: echo "VERSION=$(echo ${GITHUB_REF/refs\/tags\//})" >> $GITHUB_ENV
|
|
@@ -30,7 +28,7 @@ jobs:
|
|
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
|
|
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
|
|
run: poetry publish --build
|
|
run: poetry publish --build
|
|
- name: Create GitHub release entry
|
|
- name: Create GitHub release entry
|
|
- uses: softprops/action-gh-release@v1
|
|
|
|
|
|
+ uses: softprops/action-gh-release@v2
|
|
id: create_release
|
|
id: create_release
|
|
with:
|
|
with:
|
|
draft: true
|
|
draft: true
|
|
@@ -79,7 +77,7 @@ jobs:
|
|
platforms: all
|
|
platforms: all
|
|
- name: Login to DockerHub
|
|
- name: Login to DockerHub
|
|
if: github.event_name != 'pull_request'
|
|
if: github.event_name != 'pull_request'
|
|
- uses: docker/login-action@v1
|
|
|
|
|
|
+ uses: docker/login-action@v3
|
|
with:
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
@@ -89,7 +87,7 @@ jobs:
|
|
with:
|
|
with:
|
|
install: true
|
|
install: true
|
|
- name: Build
|
|
- name: Build
|
|
- uses: docker/build-push-action@v2
|
|
|
|
|
|
+ uses: docker/build-push-action@v6
|
|
with:
|
|
with:
|
|
context: .
|
|
context: .
|
|
file: ./release.dockerfile
|
|
file: ./release.dockerfile
|
|
@@ -119,7 +117,7 @@ jobs:
|
|
ref: main
|
|
ref: main
|
|
|
|
|
|
- name: Set up Python
|
|
- name: Set up Python
|
|
- uses: actions/setup-python@v2
|
|
|
|
|
|
+ uses: actions/setup-python@v5
|
|
with:
|
|
with:
|
|
python-version: 3.11
|
|
python-version: 3.11
|
|
|
|
|