File: deploy_source.yml

package info (click to toggle)
ezdxf 1.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 104,564 kB
  • sloc: python: 182,669; makefile: 116; lisp: 20; ansic: 4
file content (26 lines) | stat: -rw-r--r-- 686 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
name: PyPI source deployer
on:
  push:
    tags:
      - 'v*'
jobs:
  # Deploy source distribution
  Source-dist:
    runs-on: windows-latest
    steps:
      - uses: actions/checkout@v4
      - name: Setup Python
        uses: actions/setup-python@v5
        with:
          python-version: 3.12
      - name: Create source distribution
        run: |
          python -m pip install setuptools
          python setup.py sdist --formats=gztar
      - name: Upload source package to PyPI
        env:
          TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
          TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
        run: |
          pip install twine
          twine upload dist/*