-
Notifications
You must be signed in to change notification settings - Fork 13
58 lines (47 loc) · 1.76 KB
/
sqlalchemy_release.yaml
File metadata and controls
58 lines (47 loc) · 1.76 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: SQLAlchemy Publish
on:
push:
tags:
- sqla/v*
defaults:
run:
working-directory: sqlalchemy
jobs:
release-sqla:
name: SQLA publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
with:
path: |
./__pypackages__
key: ${{ runner.os }}-python-${{ hashFiles('**/pdm.lock') }}
- uses: pdm-project/setup-pdm@94a823180e06fcde4ad29308721954a521c96ed0 # v4.4
name: Setup PDM
with:
python-version: "3.10" # Version range or exact version of a Python version to use, the same as actions/setup-python
prerelease: true # Allow prerelease versions to be installed
enable-pep582: true # Enable PEP 582 package loading globally
- run: pdm install -G testcontainers
- name: Set PDM version env
run: echo "PDM_PEP517_SCM_VERSION=${GITHUB_REF_NAME#*\/}" >> $GITHUB_ENV
- run: pdm build
#- name: Publish to Test PyPI
#uses: pypa/gh-action-pypi-publish@release/v1
#with:
#user: __token__
#password: ${{ secrets.TEST_PYPI_API_TOKEN }}
#repository_url: https://test.pypi.org/legacy/
#packages_dir: sqlalchemy/dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: sqlalchemy/dist/
#- name: Create release
#run: |-
#gh release create "$GITHUB_REF_NAME" --generate-notes
#env:
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}