Skip to content

Merge pull request #312 from es-ude/refactor-tests #172

Merge pull request #312 from es-ude/refactor-tests

Merge pull request #312 from es-ude/refactor-tests #172

Workflow file for this run

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