-
Notifications
You must be signed in to change notification settings - Fork 1
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
2f3b380
commit bb0be15
Showing
2 changed files
with
15 additions
and
20 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 |
---|---|---|
|
@@ -4,11 +4,13 @@ | |
name: build and publish | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- '[0-9]+.[0-9]+.[0-9]' | ||
|
||
permissions: | ||
id-token: write | ||
contents: write | ||
contents: read | ||
|
||
jobs: | ||
test3d: | ||
|
@@ -47,27 +49,20 @@ jobs: | |
with: | ||
python-version: '3.11' | ||
|
||
- name: Azure key vault login | ||
uses: Azure/login@v1 | ||
with: | ||
client-id: ${{ secrets.AZURE_CLIENT_ID }} | ||
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | ||
allow-no-subscriptions: true | ||
|
||
- name: Fetch secrets | ||
uses: azure/CLI@v1 | ||
with: | ||
azcliversion: 2.42.0 | ||
inlineScript: | | ||
echo PYPI_TOKEN=$(az keyvault secret show --vault-name PSSCloudDev --name PYPI-Token --query value -o tsv) >> $GITHUB_ENV | ||
- name: Install dependencies | ||
run: | | ||
curl -sSL https://install.python-poetry.org | python3 | ||
poetry install --with dev --no-interaction | ||
- name: Build and publish | ||
- name: Update version (kept at 0.0.0) in pyproject.toml and build | ||
run: | | ||
poetry config pypi-token.pypi ${{ env.PYPI_TOKEN }} | ||
poetry version ${{ github.ref_name }} | ||
poetry build | ||
poetry publish | ||
- name: Mint token | ||
id: mint | ||
uses: tschm/[email protected] | ||
|
||
- name: Publish the package with poetry | ||
run: | | ||
poetry publish -u __token__ -p '${{ steps.mint.outputs.api-token }}' |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "warmth" | ||
version = "0.0.1" | ||
version = "0.0.0" | ||
description = "" | ||
authors = ["Adam Cheng <[email protected]>"] | ||
readme = "README.md" | ||
|