Skip to content

Commit

Permalink
feat: gh releases
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-auchincloss committed Feb 19, 2024
1 parent b02ec6e commit ccc5864
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- main

permissions:
contents: read
contents: write

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
Expand Down Expand Up @@ -148,3 +148,21 @@ jobs:
path: ./dist
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1

gh-release:
needs: [sdist, wheel]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v3
with:
path: ./dist
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
generate_release_notes: true
fail_on_unmatched_files: true
files: |
./dist/*
5 changes: 4 additions & 1 deletion .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main

permissions:
contents: write

jobs:
changelog:
name: Generate changelog
Expand All @@ -28,4 +31,4 @@ jobs:
set +e
git add CHANGELOG.md
git commit -m "chore: update changelog [ci skip]"
git push https://${{ secrets.GH_TOKEN }}@github.com/joshua-auchincloss/hatch-cython.git main
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/joshua-auchincloss/hatch-cython.git main

0 comments on commit ccc5864

Please sign in to comment.