Skip to content

Commit

Permalink
first attempt at publishing from pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
MusicalNinjaDad committed May 5, 2024
1 parent 2fd5278 commit 3ea4666
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy-python.yml
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/*

0 comments on commit 3ea4666

Please sign in to comment.