From 1582a15dfebfe3c30c6ed915485cd48bdc8522c8 Mon Sep 17 00:00:00 2001 From: Lino Helms Date: Thu, 3 Oct 2024 06:12:44 +0200 Subject: [PATCH] chore(ci): Changed github workflows to have a separate release workflow. Now we build with python 3.9, our oldest supported python version. --- .github/workflows/release.yml | 35 +++++++++++++++++++++++++++++++++++ .github/workflows/test.yml | 19 ------------------- 2 files changed, 35 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..9ed667d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,35 @@ +name: Release + +on: + push: + tags: + - '*' + +jobs: + build: + if: github.repository == 'jazzband/django-recurrence' + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Set up PDM for Python 3.9 + uses: pdm-project/setup-pdm@v4 + with: + python-version: 3.9 + + - name: Install dependencies + run: | + pdm sync -d -G dev + + - name: Build wheels and sdist + run: | + pdm build + + - name: Upload packages to Jazzband + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: jazzband + password: ${{ secrets.JAZZBAND_RELEASE_KEY }} + repository_url: https://jazzband.co/projects/dj-database-url/upload \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 73d44d0..ed6899a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -85,22 +85,3 @@ jobs: dist/*.whl dist/*.tar.gz - release: - needs: - - build - runs-on: ubuntu-latest - steps: - - name: Download artifacts - uses: actions/download-artifact@v4 - with: - name: wheels - path: dist - - - name: Upload packages to Jazzband - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@release/v1.8 - with: - user: jazzband - password: ${{ secrets.JAZZBAND_RELEASE_KEY }} - repository_url: https://jazzband.co/projects/django-recurrence/upload -