diff --git a/.gitea/workflows/analysis.yml b/.gitea/workflows/analysis.yml index 50053fc..18fc3b4 100644 --- a/.gitea/workflows/analysis.yml +++ b/.gitea/workflows/analysis.yml @@ -6,13 +6,12 @@ on: - main - dev pull_request: - types: [opened, synchronize, reopened] + types: [ opened, synchronize, reopened ] jobs: sonarcloud: name: SonarCloud - runs-on: ubuntu-latest - container: catthehacker/ubuntu:act-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 with: diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 5809a53..678d7db 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -9,81 +9,58 @@ permissions: jobs: release-build: - runs-on: ubuntu-latest - container: catthehacker/ubuntu:act-latest - + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 with: python-version: "3.x" - - name: Build release distributions run: | python -m pip install build python -m build - - name: Upload distributions uses: christopherhx/gitea-upload-artifact@v4 with: name: release-dists path: dist/ - gitea-publish: - runs-on: ubuntu-latest - container: catthehacker/ubuntu:act-latest - - needs: - - release-build - + runs-on: ubuntu-24.04 + needs: release-build permissions: id-token: write - environment: name: gitea url: https://git.end-play.xyz/profitroll/-/packages/pypi/libbot - env: GITHUB_WORKFLOW_REF: ${{ gitea.workflow_ref }} INPUT_REPOSITORY_URL: https://git.end-play.xyz/api/packages/profitroll/pypi - steps: - name: Retrieve release distributions uses: christopherhx/gitea-download-artifact@v4 with: name: release-dists path: dist/ - - name: Publish package distributions to TestPyPI uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.PYPI_GITEA_API_TOKEN }} repository-url: https://git.end-play.xyz/api/packages/profitroll/pypi - pypi-publish: - runs-on: ubuntu-latest - container: catthehacker/ubuntu:act-latest - - needs: - - release-build - + runs-on: ubuntu-24.04 + needs: release-build permissions: id-token: write - environment: name: pypi - env: GITHUB_WORKFLOW_REF: ${{ gitea.workflow_ref }} - steps: - name: Retrieve release distributions uses: christopherhx/gitea-download-artifact@v4 with: name: release-dists path: dist/ - - name: Publish package distributions to TestPyPI uses: pypa/gh-action-pypi-publish@release/v1 with: diff --git a/.gitea/workflows/tests.yml b/.gitea/workflows/tests.yml index 0fa3d13..1f19e51 100644 --- a/.gitea/workflows/tests.yml +++ b/.gitea/workflows/tests.yml @@ -11,12 +11,10 @@ on: jobs: test: name: Build and Test - runs-on: ubuntu-latest - container: catthehacker/ubuntu:act-latest + runs-on: ubuntu-24.04 strategy: matrix: python-version: [ "3.11", "3.12", "3.13" ] - steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }}