File: make-release.yml

package info (click to toggle)
trash-cli 0.24.5.26-0.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,972 kB
  • sloc: python: 9,789; sh: 121; makefile: 11
file content (33 lines) | stat: -rw-r--r-- 865 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
name: Make Release

on: push

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v5
      with:
        python-version: 3.11
    - name: Set version
      run: |
        pip install --upgrade pip
        scripts/lib/install-python-requirements
        scripts/set-dev-version ${{ github.ref_name }} ${{ github.sha }}

    - name: Make release
      run: scripts/test-sdist

    - name: version name
      run: echo "version=$(python -c 'import setuptools; setuptools.setup()' --version)" >> "$GITHUB_OUTPUT"
      id: version-name

    - name: Publish release
      uses: actions/upload-artifact@v4
      with:
        name: trash-cli-${{ steps.version-name.outputs.version }}.zip
        path: dist/*.tar.gz
        if-no-files-found: error