Skip to content

Commit

Permalink
Merge pull request #7 from Oracen/feature/setup-cicd
Browse files Browse the repository at this point in the history
chore: cicd
  • Loading branch information
Oracen authored Mar 11, 2023
2 parents 897980c + 5bcb193 commit 70a2607
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 32 deletions.
33 changes: 2 additions & 31 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,10 @@
name: Release version
name: Release PyPI Version

on:
push:
tags:
- "*.*.*"
permissions:
contents: write
- "v*.*.*"
jobs:
bump-version:
if: "!startsWith(github.event.head_commit.message, 'bump:')"
runs-on: ubuntu-latest
name: "Bump version and create changelog"
steps:
- name: Check out
uses: actions/checkout@v3
with:
fetch-depth: 0
token: "${{ secrets.GITHUB_TOKEN }}"
- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
changelog_increment_filename: body.md
release-pypi:
name: release-pypi
runs-on: ubuntu-latest
Expand Down Expand Up @@ -49,15 +32,3 @@ jobs:
body_path: .changelog.md
draft: false
prerelease: false
release-github:
name: release-github
runs-on: ubuntu-latest
steps:
- name: Release Github
uses: softprops/action-gh-release@v1
with:
release_name: "Release ${{${{ github.ref }}}}"
body_path: "body.md"
tag_name: ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 8 additions & 1 deletion .github/workflows/tag-version.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Bump version
name: Bump Version and Tag

on:
push:
Expand All @@ -22,3 +22,10 @@ jobs:
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
changelog_increment_filename: body.md
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: "body.md"
tag_name: v${{ env.REVISION }}
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

0 comments on commit 70a2607

Please sign in to comment.