From daa24f8a5f1de66cefc5f7ed05063599f8705a94 Mon Sep 17 00:00:00 2001 From: Eric Veilleux Date: Sat, 30 Nov 2024 15:01:37 -0500 Subject: [PATCH 1/2] Migrate to github actions --- .github/workflows/publish.yml | 61 +++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..df46cd7 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,61 @@ +name: Build & Release + +on: + push: + branches: + - master + +permissions: + contents: read + +jobs: + release-build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.11" + + - name: Install deps + run: python -m pip install wheel build + + - name: Test install + run: python -m pip install . + + - name: Build for distribution + run: python -m build + + - name: Upload distributions + uses: actions/upload-artifact@v4 + with: + name: release-dists + path: dist/ + + pypi-publish: + runs-on: ubuntu-latest + needs: + - release-build + permissions: + # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write + + # Dedicated environments with protections for publishing are strongly recommended. + # For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules + environment: + name: pypi + url: https://pypi.org/p/rlbot-gui + + steps: + - name: Retrieve release distributions + uses: actions/download-artifact@v4 + with: + name: release-dists + path: dist/ + + - name: Publish release distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages-dir: dist/ From 152e1457057e0d1278ce20541a1ce6468de1a33e Mon Sep 17 00:00:00 2001 From: Eric Veilleux Date: Sat, 30 Nov 2024 15:04:13 -0500 Subject: [PATCH 2/2] Delete .appveyor.yml --- .appveyor.yml | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 .appveyor.yml diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index 0f4bb8f..0000000 --- a/.appveyor.yml +++ /dev/null @@ -1,29 +0,0 @@ -version: '{build}' - -environment: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: - secure: tTJUexu4V68/Zbl3l/K7x8eI4TR56JZhn2DEvCemP8zNYPCkcFgYfaGp27c6fCoPpgWEvyzJjYyqAzsxLl4mYKtMDEtV9a1B9tD2ElnbERnxpvK4lldg8fAhdpYFw+L3EqPLEaVTAROysUl4w+qf+OQrEet6kcdMGa7jlXSFdqjW/kjU4/SdSD/mQp/Uec4GqcyvxXb8wIm1+tjblFxm9yVh6FfcDdv6/WEm3nWuveUpfQ3yxx6B5RY3SfTySgsS6izSMp//Yqgo5feJ3snv7MzKBezYW90OabQ7Af8o9jY= - - matrix: - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 - PYTHON: C:\Python311-x64\python.exe - -branches: - only: - - master - -install: - - cmd: "%PYTHON% -m pip install --upgrade pip wheel build twine" - -build_script: - - cmd: "%PYTHON% -m pip install ." - -artifacts: - - path: dist\* - -after_test: - - cmd: "%PYTHON% -m build" - -on_success: - - cmd: "%PYTHON% -m twine upload dist\\* --verbose"