pypi-release
This commit is contained in:
parent
00a57bc786
commit
edd690c0b0
1 changed files with 26 additions and 20 deletions
46
.github/workflows/release.yml
vendored
46
.github/workflows/release.yml
vendored
|
|
@ -4,6 +4,9 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- '*'
|
- '*'
|
||||||
|
env:
|
||||||
|
HATCH_INDEX_USER: __token__
|
||||||
|
HATCH_INDEX_AUTH: ${{ secrets.pypi_password }}
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
strategy:
|
strategy:
|
||||||
|
|
@ -62,23 +65,26 @@ jobs:
|
||||||
build_dir: site/markout
|
build_dir: site/markout
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# - name: Upload Release Asset
|
pypi-release:
|
||||||
# id: upload-release-asset
|
runs-on: ubuntu-latest
|
||||||
# uses: actions/upload-release-asset@v1
|
steps:
|
||||||
# env:
|
- uses: actions/checkout@v3
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
- uses: actions/setup-python@v4
|
||||||
# with:
|
with:
|
||||||
# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
python-version: '3.10'
|
||||||
# asset_path: site/markout/creeper-linux-latest.zip
|
- name: install hatch
|
||||||
# asset_name: creeper-linux-latest.zip
|
run: pip install hatch
|
||||||
# asset_content_type: application/zip
|
- name: bump version
|
||||||
# - name: Upload Release Asset
|
run: |
|
||||||
# id: upload-release-asset
|
git config --global user.name 'autobump'
|
||||||
# uses: actions/upload-release-asset@v1
|
git config --global user.email 'autobump@users.noreply.github.com'
|
||||||
# env:
|
hatch version major
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
git add .
|
||||||
# with:
|
git commit -m "Bump version: `hatch version`"
|
||||||
# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
git tag v$NEW_VERSION
|
||||||
# asset_path: site/markout/creeper-windows-latest.zip
|
git push
|
||||||
# asset_name: creeper-windows-latest.zip
|
git push --tags
|
||||||
# asset_content_type: application/zip
|
- name: publish
|
||||||
|
run: |
|
||||||
|
runner hatch build
|
||||||
|
runner hatch publish
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue