Skip to content

Commit

Permalink
Merge pull request #237 from dilyabareeva/publish_workflow
Browse files Browse the repository at this point in the history
feat: Publish Workflow
  • Loading branch information
dilyabareeva authored Nov 21, 2024
2 parents 7b60463 + 136216b commit 3a9e582
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/package_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: package-publish

on:
workflow_dispatch:

jobs:
cd:
permissions:
id-token: write
contents: write

runs-on: ubuntu-latest

steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Check-out repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: steps.release.outputs.released == 'true'
with:
repository-url: https://test.pypi.org/legacy/
password: ${{ secrets.TEST_PYPI_TOKEN }}

- name: Test install from TestPyPI
run: |
python -m pip install --index-url https://test.pypi.org/simple/ --no-deps quanda
python -c "import quanda; print(quanda.__version__)"
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: release

on:
workflow_dispatch: # Allows manual triggering of the workflow
workflow_dispatch:

jobs:
cd:
Expand Down

0 comments on commit 3a9e582

Please sign in to comment.