Skip to content

Commit

Permalink
Add publish to AlphaLayer repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Daveography committed Feb 8, 2023
1 parent 6e78116 commit 7d4299d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish Package

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 30

strategy:
matrix:
python-version: [3.9]

steps:
- name: Git Checkout
uses: actions/checkout@v3
with:
lfs: true

- name: Install poetry
run: pipx install poetry

- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
cache: poetry

- name: Build and publish
run: |
poetry version ${{ github.ref_name }}
poetry build
poetry publish --repository alphalayer-publish --username __token__ --password ${{ secrets.ADO_PACKAGES_PAT }}
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ include = [
]

[tool.poetry.dependencies]
python = "^3.6"
python = "^3.7"
toml = "^0.10.0"
poetry-semver = "^0.1.0"

Expand All @@ -39,6 +39,12 @@ flake8 = "^4.0.1"
[tool.poetry.scripts]
poetry2conda = "poetry2conda.convert:main"

[[tool.poetry.source]]
name = "alphalayer-publish"
url = "https://pkgs.dev.azure.com/alphalayerai/Packages/_packaging/Python/pypi/upload/"
default = false
secondary = true

[tool.pytest.ini_options]
testpaths = ["tests"]
python_paths = "./poetry2conda"
Expand Down

0 comments on commit 7d4299d

Please sign in to comment.