forked from dbt-msft/dbt-sqlserver
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 854 Bytes
/
Copy pathrelease-version.yml
File metadata and controls
35 lines (28 loc) · 854 Bytes
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
---
name: Release new version
on: # yamllint disable-line rule:truthy
release:
types:
- published
jobs:
release-version:
name: Release new version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Install build tooling
run: pip install build twine
- name: Verify version matches tag
run: python .github/scripts/verify_version.py "${{ github.ref_name }}"
- name: Initialize .pypirc
run: |
echo -e "[pypi]" >> ~/.pypirc
echo -e "username = __token__" >> ~/.pypirc
echo -e "password = ${{ secrets.PYPI_DBT_SQLSERVER }}" >> ~/.pypirc
- name: Build and publish package
run: |
python -m build
twine upload dist/*