aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows/release.yml
blob: 54eeb310d2f2ea9abfaba8d4df7c9156c9664bb1 (plain) (blame)
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
name: Release

on:
  push:
    tags:
      - "v*"
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    env:
      PDM_PUBLISH_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
      PDM_PUBLISH_USERNAME: ${{ secrets.PYPI_USERNAME }}
    steps:
      - uses: actions/checkout@v3

      - name: Install pdm
        run: pipx install pdm
        shell: bash
      - uses: actions/setup-python@v4
        with:
          python-version: "3.9"
          architecture: "x64"
      - run: pdm install
        shell: bash

      - run: pdm publish
        shell: bash