forked from dbt-msft/dbt-sqlserver
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (28 loc) · 833 Bytes
/
release-version.yml
File metadata and controls
35 lines (28 loc) · 833 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@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install dependencies
run: pip install -r dev_requirements.txt
- name: Verify version match
run: python setup.py verify
- 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 setup.py sdist bdist_wheel
twine upload dist/*