build: adjust dockerfile (#104) #51
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: CI | |
on: | |
push: | |
branches: [main] | |
concurrency: | |
group: ci-${{ github.head_ref }} | |
cancel-in-progress: true | |
# Set permissions at the job level. | |
permissions: {} | |
env: | |
PYTHONUNBUFFERED: 1 | |
FORCE_COLOR: 1 | |
jobs: | |
test: | |
uses: ./.github/workflows/test.yml | |
secrets: inherit | |
release: | |
# disables this workflow from running in a repository that is not part of the indicated organization/user | |
if: github.repository_owner == 'afuetterer' | |
runs-on: ubuntu-24.04 | |
permissions: | |
contents: read | |
needs: | |
- test | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
with: | |
fetch-depth: 0 # get all commits and tags | |
token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }} | |
- name: Create semantic release | |
uses: python-semantic-release/python-semantic-release@31a691e771e103d6b9c70baafc75fb2cc9f48207 # v9.8.0 | |
with: | |
# allows for python-semantic-release to push to protected main branch | |
github_token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }} |