Replaced ubuntu-latest with ubuntu-24.04
Some checks failed
Analysis / SonarCloud (push) Has been cancelled

This commit is contained in:
Profitroll 2025-01-09 22:18:57 +01:00
parent fec40b1c44
commit a1d0b98858
Signed by: profitroll
GPG Key ID: FA35CAB49DACD3B2
3 changed files with 8 additions and 34 deletions

View File

@ -11,8 +11,7 @@ on:
jobs: jobs:
sonarcloud: sonarcloud:
name: SonarCloud name: SonarCloud
runs-on: ubuntu-latest runs-on: ubuntu-24.04
container: catthehacker/ubuntu:act-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:

View File

@ -9,81 +9,58 @@ permissions:
jobs: jobs:
release-build: release-build:
runs-on: ubuntu-latest runs-on: ubuntu-24.04
container: catthehacker/ubuntu:act-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: "3.x" python-version: "3.x"
- name: Build release distributions - name: Build release distributions
run: | run: |
python -m pip install build python -m pip install build
python -m build python -m build
- name: Upload distributions - name: Upload distributions
uses: christopherhx/gitea-upload-artifact@v4 uses: christopherhx/gitea-upload-artifact@v4
with: with:
name: release-dists name: release-dists
path: dist/ path: dist/
gitea-publish: gitea-publish:
runs-on: ubuntu-latest runs-on: ubuntu-24.04
container: catthehacker/ubuntu:act-latest needs: release-build
needs:
- release-build
permissions: permissions:
id-token: write id-token: write
environment: environment:
name: gitea name: gitea
url: https://git.end-play.xyz/profitroll/-/packages/pypi/libbot url: https://git.end-play.xyz/profitroll/-/packages/pypi/libbot
env: env:
GITHUB_WORKFLOW_REF: ${{ gitea.workflow_ref }} GITHUB_WORKFLOW_REF: ${{ gitea.workflow_ref }}
INPUT_REPOSITORY_URL: https://git.end-play.xyz/api/packages/profitroll/pypi INPUT_REPOSITORY_URL: https://git.end-play.xyz/api/packages/profitroll/pypi
steps: steps:
- name: Retrieve release distributions - name: Retrieve release distributions
uses: christopherhx/gitea-download-artifact@v4 uses: christopherhx/gitea-download-artifact@v4
with: with:
name: release-dists name: release-dists
path: dist/ path: dist/
- name: Publish package distributions to TestPyPI - name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1 uses: pypa/gh-action-pypi-publish@release/v1
with: with:
password: ${{ secrets.PYPI_GITEA_API_TOKEN }} password: ${{ secrets.PYPI_GITEA_API_TOKEN }}
repository-url: https://git.end-play.xyz/api/packages/profitroll/pypi repository-url: https://git.end-play.xyz/api/packages/profitroll/pypi
pypi-publish: pypi-publish:
runs-on: ubuntu-latest runs-on: ubuntu-24.04
container: catthehacker/ubuntu:act-latest needs: release-build
needs:
- release-build
permissions: permissions:
id-token: write id-token: write
environment: environment:
name: pypi name: pypi
env: env:
GITHUB_WORKFLOW_REF: ${{ gitea.workflow_ref }} GITHUB_WORKFLOW_REF: ${{ gitea.workflow_ref }}
steps: steps:
- name: Retrieve release distributions - name: Retrieve release distributions
uses: christopherhx/gitea-download-artifact@v4 uses: christopherhx/gitea-download-artifact@v4
with: with:
name: release-dists name: release-dists
path: dist/ path: dist/
- name: Publish package distributions to TestPyPI - name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1 uses: pypa/gh-action-pypi-publish@release/v1
with: with:

View File

@ -11,12 +11,10 @@ on:
jobs: jobs:
test: test:
name: Build and Test name: Build and Test
runs-on: ubuntu-latest runs-on: ubuntu-24.04
container: catthehacker/ubuntu:act-latest
strategy: strategy:
matrix: matrix:
python-version: [ "3.11", "3.12", "3.13" ] python-version: [ "3.11", "3.12", "3.13" ]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}