Skip to content

Commit

Permalink
dogfood own action
Browse files Browse the repository at this point in the history
  • Loading branch information
drewcassidy committed Aug 20, 2024
1 parent 629d931 commit 1f01bda
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ jobs:
run: python -m unittest -v

deploy:
needs: test
# needs: test
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')

steps:
- uses: actions/checkout@v4
Expand All @@ -56,18 +56,16 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install setuptools wheel twine
python -m pip install . # Self hosting!
- name: Install pypa/build
run: python -m pip install build --user

- name: Build a binary wheel and source tarball
run: python -m build --sdist --wheel --outdir dist/

- name: Get version name and body
run: |
echo "VERSION_TILE=$(yaclog show -n)" >> $GITHUB_ENV
echo "$(yaclog show -mb)" >> RELEASE.md
- name: Get version info
id: yaclog-show
uses: ./

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand All @@ -78,7 +76,7 @@ jobs:
uses: softprops/action-gh-release@v2
with:
files: dist/*
name: ${{ env.VERSION_TITLE }}
body_path: RELEASE.md
name: ${{ steps.yaclog-show.outputs.name }}
body_path: ${{ steps.yaclog-show.outputs.body_file }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1f01bda

Please sign in to comment.