File: release.yml

package info (click to toggle)
django-recurrence 1.14-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,140 kB
  • sloc: python: 2,530; javascript: 2,502; makefile: 159
file content (35 lines) | stat: -rw-r--r-- 790 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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.10.2
      with:
        user: jazzband
        password: ${{ secrets.JAZZBAND_RELEASE_KEY }}
        repository-url: https://jazzband.co/projects/django-recurrence/upload