Skip to content

Commit

Permalink
Debug publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
tdg5 committed Dec 22, 2023
1 parent 1cf77eb commit 18275f7
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/main-build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ jobs:
versionFormat: python

- name: Publish package to pypi
env:
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
TWINE_USERNAME: __token__
run: |
source venv/bin/activate
python -m twine upload dist/*
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/other-check-quality-and-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,39 @@ jobs:
make nose
python -m build
working-directory: qless-py

- name: Checkout tdg5/github-action-pack
uses: actions/checkout@v4
with:
path: .github/actions/tdg5/github-action-pack
ref: v0.0.2
repository: tdg5/github-action-pack

- name: Increment version
uses: ./.github/actions/tdg5/github-action-pack/packages/increment-version-file-action/src
with:
authorEmail: dannyguinther@gmail.com
authorName: Danny Guinther
commitMessage: "[skip actions] Increment version for next development cycle"
repoPath: qless-py
versionFilePath: VERSION
versionFormat: python

- name: Publish package to pypi
env:
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
TWINE_USERNAME: __token__
run: |
source venv/bin/activate
python -m twine upload dist/*
working-directory: qless-py

# Add the tag after publishing the package so it is more likely that we
# end up with a package without a tag than a tag without a package.
- name: Create and push tag for published version
run: |
VERSION="$(git show HEAD~1:VERSION)"
TAG_NAME="v${VERSION}"
git tag "$TAG_NAME" HEAD~1
git push origin "$TAG_NAME"
working-directory: qless-py
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.12.0a9
0.12.0a6

0 comments on commit 18275f7

Please sign in to comment.