forked from mammothbio-os/palamedes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mammothbio-os#11 from mbiokyle29/push-to-pypi
Push to pypi
- Loading branch information
Showing
6 changed files
with
89 additions
and
30 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
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
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 |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
build: | ||
if: ${{ github.repository == 'mammothbio-os/palamedes' }} | ||
uses: ./.github/workflows/build.yaml | ||
|
||
test-release: | ||
name: publish to test pypi | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
environment: | ||
name: test-release | ||
url: https://test.pypi.org/p/palamedes | ||
|
||
permissions: | ||
id-token: write | ||
|
||
steps: | ||
- name: download build | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
|
||
- name: publish | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
repository-url: https://test.pypi.org/legacy/ | ||
|
||
release: | ||
needs: test-release | ||
environment: release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
|
||
steps: | ||
- name: download build | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
|
||
- name: publish | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
|
||
release-github: | ||
needs: release | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
id-token: write | ||
|
||
steps: | ||
- name: download build | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
|
||
- name: sign | ||
uses: sigstore/[email protected] | ||
with: | ||
inputs: >- | ||
./dist/*.tar.gz | ||
./dist/*.whl | ||
- name: create release | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
run: gh release create '${{ github.ref_name }}' --repo '${{ github.repository }}' --notes "" | ||
|
||
- name: upload release artifacts | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
run: gh release upload '${{ github.ref_name }}' dist/** --repo '${{ github.repository }}' |
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
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
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 @@ | ||
from setuptools import find_packages, setup | ||
|
||
version = "0.0.1" | ||
version = "0.0.2" | ||
|
||
setup( | ||
name="palamedes", | ||
|