-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first attempt at publishing from pipeline
- Loading branch information
1 parent
2fd5278
commit 3ea4666
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
concurrency: ADO-twine | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: "python-v*" | ||
|
||
jobs: | ||
quality-check: | ||
uses: ./.github/workflows/python.yml | ||
|
||
publish: | ||
environment: ADO-Packages | ||
needs: quality-check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
- name: Setup Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
- name: Install Build tooling | ||
run: pip install twine build | ||
- name: Build sdist | ||
run: python -m build | ||
- name: Install ADO tooling | ||
run: pip install keyring artifacts-keyring | ||
- name: Upload to ADO | ||
env: | ||
TWINE_REPOSITORY_URL: https://pkgs.dev.azure.com/MusicalNinjas/FizzBuzz/_packaging/FizzBuzz/pypi/upload/ | ||
TWINE_PASSWORD: ${{ secrets.ADO_TOKEN }} | ||
run: twine upload --non-interactive dist/* |