File: release.yml

package info (click to toggle)
django-q 1.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,268 kB
  • sloc: python: 5,686; makefile: 181; sh: 30
file content (31 lines) | stat: -rw-r--r-- 819 bytes parent folder | download | duplicates (2)
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
name: Release

on:
  push:
    tags:
    - '*'

jobs:
  build:
    if: github.repository == 'django-q2/django-q2'
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Set up Python
        uses: actions/setup-python@v4
        with:
          python-version: 3.11
      - name: Install dependencies
        run: |
          sudo apt-get update
          sudo apt-get -y install gettext
          python -m pip install pip setuptools django poetry
          # compile messages to get .mo files
          django-admin compilemessages
      - name: Build and publish package
        if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
        run: poetry --build --username=__token__ --password=${{ secrets.PYPI_TOKEN }} publish