Skip to content

Commit

Permalink
Merge pull request #3 from shry-project/devel
Browse files Browse the repository at this point in the history
Deploy test
  • Loading branch information
kousuke-nakano authored Dec 21, 2023
2 parents 55aa7bd + 92b71d3 commit 980b7d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/shry-deploy-test.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
name: Publish Python distributions to test-PyPI
on:
push:
tags:
- v*

workflow_dispatch:

branches: [ "main" ]

jobs:
deploy-pypi:
if: github.repository == 'shry-project/SHRY'

runs-on: ubuntu-latest

steps:
- name: Exit if not on master branch
if: endsWith(github.ref, 'main') == false
run: exit -1

- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand All @@ -33,7 +26,7 @@ jobs:
python setup.py sdist bdist_wheel
- name: Publish distribution to Test PyPI
#if: startsWith(github.ref, 'refs/tags/v')
if: startsWith(github.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ Add and push with the new tag
# Push with tag
git tag <next-version> # e.g., git tag v1.1.4 # Do not forget "v" before the version number!
git push origin devel --tags # or to the new branch
git push origin devel --tags # or to the new branch # Do not push to the mater branch!!
Merge the devel branch to the master branch. The implemented GitHub Action checks if the automatic deploy works using test-pyPI (only if the commit is tagged correctly, e.g., v1.1.0 or v1.1.0-alpha).
Make a pull request for merging the devel branch to the master branch by hand. The implemented GitHub Action checks if the automatic deploy works using test-pyPI (only if the commit is tagged correctly, e.g., v1.1.0 or v1.1.0-alpha).

Finally, do a new release with a release note on GitHub. The new release triggers an implemented GitHub Action that automatically uploads the package to PyPI (if the commit is tagged correctly, e.g., v1.1.0 or v1.1.0-alpha).

0 comments on commit 980b7d1

Please sign in to comment.