pypi-release

This commit is contained in:
Waylon Walker 2023-01-03 20:47:54 -06:00
parent 00a57bc786
commit edd690c0b0
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4

View file

@ -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