Skip to content

Commit

Permalink
ci: publish to checkout the bwa submodule (#14)
Browse files Browse the repository at this point in the history
* ci: publish to checkout the bwa submodule

* chore: upload the full tarball upon release
  • Loading branch information
nh13 authored Jan 17, 2025
1 parent f55a710 commit 0fe5009
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/publish_pybwa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'true'

- uses: rickstaa/action-contains-tag@v1
id: contains_tag
Expand Down Expand Up @@ -66,6 +67,9 @@ jobs:
- name: Build package
run: poetry build --format=sdist

- name: Print contents
run: tar -tf dist/*.tar.gz

- uses: actions/upload-artifact@v4
with:
name: pybwa-sdist
Expand Down Expand Up @@ -101,6 +105,7 @@ jobs:
with:
fetch-depth: 0
ref: ${{ github.ref_name }}
submodules: true

- name: Generate a Changelog
uses: orhun/git-cliff-action@v3
Expand All @@ -119,6 +124,13 @@ jobs:
pull-requests: read
needs: make-changelog
steps:
- name: Download the sdist
uses: actions/download-artifact@v4
with:
name: pybwa-sdist
path: pybwa-sdist.zip
- name: Unzip
run: unzip pybwa-sdist.zip
- name: Create Draft Release
id: create_release
uses: softprops/action-gh-release@v2
Expand All @@ -127,3 +139,7 @@ jobs:
body: ${{ needs.make-changelog.outputs.release_body }}
draft: false
prerelease: false
files: |
pybwa*tar.gz

0 comments on commit 0fe5009

Please sign in to comment.