Skip to content

feat: check semantics release #111

feat: check semantics release

feat: check semantics release #111

### This is the old configuration with pyproject.toml file
name: Semantic Release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
concurrency: release
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Python Semantic Release
uses: relekang/python-semantic-release@v9.4.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish package distributions to GitHub Releases
uses: python-semantic-release/upload-to-gh-release@main
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
### This works with the new onfig.js file
#name: Semantic Release
#
#on:
# push:
# branches:
# - development
# - main
#
#jobs:
# release:
# runs-on: ubuntu-latest
# concurrency: release
#
# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: 0
#
# - uses: actions/setup-node@v3
# with:
# node-version: 14
# - name: Semantic Release
# uses: cycjimmy/semantic-release-action@v3
# with:
# semantic_version: 18
# branches: |
# [ 'main',
# {
# name: 'alpha',
# prerelease: true
# }
# ]
# extra_plugins: |
# "@semantic-release/commit-analyzer"
# "@semantic-release/release-notes-generator"
# "@semantic-release/changelog"
# "conventional-changelog-conventionalcommits@6"
# #github_token: ${{ secrets.GITHUB_TOKEN }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Publish package distributions to GitHub Releases
# uses: python-semantic-release/upload-to-gh-release@main
# if: steps.release.outputs.released == 'true'
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}