Skip to content

Commit

Permalink
add test.pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
tvansteenburgh committed Sep 18, 2023
1 parent 327e446 commit 2511bc6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
23 changes: 22 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- build
runs-on: ubuntu-latest
environment:
name: release
name: pypi
url: https://pypi.org/p/stacklet.client.platform
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
Expand Down Expand Up @@ -81,3 +81,24 @@ jobs:
gh release upload
'${{ github.ref_name }}' dist/**
--repo '${{ github.repository }}'
publish-to-testpypi:
name: Publish Python distribution to TestPyPI
needs:
- build
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/p/stacklet.client.platform
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,3 @@ stacklet-admin account list --last 1
```
$ just install
```

## Compiling for distribution

```
$ just compile
```

0 comments on commit 2511bc6

Please sign in to comment.