Skip to content

Commit

Permalink
ci: add github action for semantic release (#154)
Browse files Browse the repository at this point in the history
* ci (release): add semantic release configuration

Preparing to switch over to semantic release

Signed-off-by: Timothy MacDonald <[email protected]>

* ci: github action added for semantic release

Signed-off-by: Timothy MacDonald <[email protected]>

---------

Signed-off-by: Timothy MacDonald <[email protected]>
  • Loading branch information
tmac1973 authored Feb 6, 2024
1 parent b15ebbe commit 8968228
Show file tree
Hide file tree
Showing 5 changed files with 142 additions and 138 deletions.
34 changes: 0 additions & 34 deletions .github/release-drafter.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Semantic Release

on:
workflow_dispatch:
inputs:
bump_major:
required: false
type: choice
description: should the major version be incremented
default: 'false'
options:
- true
- false

jobs:
release:
runs-on: ubuntu-latest
concurrency: release
permissions:
id-token: write
contents: write

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Python Semantic Major Release
if: ${{ inputs.bump_major == 'true' }}
uses: python-semantic-release/python-semantic-release@master
with:
force: "major"
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Python Semantic Release
if: ${{ inputs.bump_major == 'false' }}
uses: python-semantic-release/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
12 changes: 0 additions & 12 deletions .github/workflows/release-drafter.yml

This file was deleted.

Loading

0 comments on commit 8968228

Please sign in to comment.