diff --git a/.github/workflows/package-build.yml b/.github/workflows/package-build.yml new file mode 100644 index 00000000..df3a1239 --- /dev/null +++ b/.github/workflows/package-build.yml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index a8a76c7f..86af76de 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -313,3 +313,15 @@ overgeneral-exceptions= [ "BaseException", "Exception" ] + +[tool.poetry] +name = "mySamplePack" +version = "0.1.0" +description = "" +authors = ["shimizu"] +readme = "README.md" + + +packages = [ + { include = "src/python_package" } +]