File size: 1,020 Bytes
2bd75b6
 
31ffc0e
 
 
5df9acb
2bd75b6
 
 
 
49aff6b
 
 
 
 
2bd75b6
 
3a1fd74
2bd75b6
5afff31
2bd75b6
 
 
93a1cee
2bd75b6
93a1cee
2bd75b6
 
 
 
49aff6b
 
 
2bd75b6
 
 
 
49aff6b
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
34
35
36
37
38
39
name: Deploy PyPI
on:
  push:
    tags:
      - 'v*.*.*'
  workflow_dispatch:

jobs:
  pypi:
    runs-on: ubuntu-latest
    environment:
      name: pypi
      url: https://pypi.org/p/pysr
    permissions:
      id-token: write
    steps:
      - name: "Checkout"
        uses: actions/checkout@v4
      - name: "Set up Python"
        uses: actions/setup-python@v5
        with:
          python-version: 3.10.8
      - name: "Install building tools"
        run: pip install build
      - name: "Build package"
        run: python -m build
      - name: "Publish distribution πŸ“¦ to Test PyPI"
        uses: pypa/gh-action-pypi-publish@release/v1
        with:
          password: ${{ secrets.TEST_PYPI_API_TOKEN }}
          repository-url: https://test.pypi.org/legacy/
          skip-existing: true
          verbose: true
      - name: "Publish distribution πŸ“¦ to PyPI"
        uses: pypa/gh-action-pypi-publish@release/v1
        with:
          password: ${{ secrets.PYPI_API_TOKEN }}
          verbose: true