-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7293bd6
commit 549f8f3
Showing
1 changed file
with
34 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,34 @@ | ||
|
||
name: Python Build | ||
on: push | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: [3.9] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
env: | ||
SUPER_SECRET: ${{ secrets.SuperSecret }} | ||
- name: Update pip | ||
run: | | ||
python -m pip install --upgrade pip | ||
- name: Install Poetry | ||
run: | | ||
pip install poetry | ||
poetry install --no-interaction | ||
- name: Pack Build | ||
run: | | ||
poetry build | ||
poetry self add artifacts-keyring | ||
- name: Pack publish | ||
run: | | ||
poetry config repositories.azure https://pkgs.dev.azure.com/takshimizu/_packaging/mySamplePack/pypi/upload/ --local | ||
poetry config http-basic.azure tmp_token ${{ env.SUPER_SECRET }} --local | ||
poetry publish -r azure |