-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from wtsi-npg/devel
Release 4.0.1 to master
- Loading branch information
Showing
7 changed files
with
341 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
|
||
name: "Create release" | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l -e -o pipefail {0} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: "Fetch Tags" | ||
run: git fetch --tags --force | ||
|
||
- name: "Set up Python" | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
architecture: "x64" | ||
|
||
- name: Install Poetry | ||
run: | | ||
pipx install poetry | ||
- name: Run poetry install | ||
run: | | ||
poetry env use '3.10' | ||
poetry self add "poetry-dynamic-versioning[plugin]" | ||
poetry build | ||
- name: "Get release variables" | ||
run: | | ||
echo RELEASE_VERSION=$(git describe --always --tags --dirty) >> $GITHUB_ENV | ||
echo MASTER_SHA=$(git rev-parse origin/master) >> $GITHUB_ENV | ||
- name: "Create Release" | ||
uses: ncipollo/[email protected] | ||
with: | ||
name: ${{ env.RELEASE_VERSION }} | ||
prerelease: ${{ !(github.sha == env.MASTER_SHA) }} | ||
artifacts: "dist/*.tar.gz" | ||
removeArtifacts: true | ||
artifactErrorsFailBuild: true | ||
generateReleaseNotes: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.