Skip to content

Commit

Permalink
Merge pull request #16 from nerdstrike/devel
Browse files Browse the repository at this point in the history
Setup for release 4.0.1
  • Loading branch information
mksanger authored Oct 12, 2023
2 parents e6d80f0 + e18c0c8 commit b7a2da5
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 1 deletion.
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
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
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [4.0.1]

### [Changed]

Expand Down

0 comments on commit b7a2da5

Please sign in to comment.