Skip to content

Commit

Permalink
Create package-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
takuto-shimizu authored May 11, 2024
1 parent 7293bd6 commit 549f8f3
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/package-build.yml
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

0 comments on commit 549f8f3

Please sign in to comment.