feat: check semantics release #111
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 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 }} |