Merge pull request #350 from es-ude/revert-349-merging-main-to-develop #183
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
name: Test and Publish | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
checks: | |
uses: ./.github/workflows/checks.yml | |
beautify: | |
needs: [ checks ] | |
uses: ./.github/workflows/beautify.yml | |
semantic-release: | |
name: Bump Version and Release | |
runs-on: ubuntu-latest | |
concurrency: release | |
needs: [checks, beautify] | |
outputs: | |
new_version: ${{ steps.version.outputs.VERSION }} | |
new_sha: ${{ steps.sha.outputs.SHA }} | |
steps: | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: ${{ needs.beautify.outputs.new_sha }} | |
- name: Install semantic release | |
run: pip install python-semantic-release==7.34.6 | |
- name: Set git user | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
- name: Run semantic release | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
REPOSITORY_USERNAME: __token__ | |
REPOSITORY_PASSWORD: ${{ secrets.PYPI_PROJECT_API_TOKEN }} | |
run: semantic-release publish |