Debian Codegraph @

.github/workflows/release.yml

raw
1 name: Release
2
3 on:
4 push:
5 tags:
6 - '*'
7
8 jobs:
9 build:
10 if: github.repository == 'jazzband/django-invitations'
11 runs-on: ubuntu-latest
12
13 steps:
14 - uses: actions/checkout@v2
15 with:
16 fetch-depth: 0
17
18 - name: Set up Python
19 uses: actions/setup-python@v2
20 with:
21 python-version: 3.8
22
23 - name: Install dependencies
24 run: |
25 python -m pip install -U pip
26 python -m pip install -U poetry
27
28 - name: Build package
29 run: |
30 poetry build
31
32 - name: Upload packages to Jazzband
33 if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
34 run: |
35 poetry config repositories.jazzband https://jazzband.co/projects/django-invitations/upload
36 poetry config http-basic.jazzband jazzband ${{ secrets.JAZZBAND_RELEASE_KEY }}
37 poetry publish -r jazzband