ci: add code scanning (codeql) and badge (#34) #86
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: "Release" | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "LICENSE" | |
- "CHANGELOG.md" | |
- "manifests/base/kustomization.yaml" | |
tags-ignore: | |
- '*' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
concurrency: release | |
permissions: | |
id-token: write | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: Get release version | |
id: release_version | |
uses: python-semantic-release/python-semantic-release@master | |
with: | |
root_options: '-vv --noop' | |
push: false | |
force: false | |
vcs_release: false | |
commit: false | |
- name: update manifest version | |
run: | | |
echo "new version: ${{ steps.release_version.outputs.version }}" | |
cd manifests/base | |
kustomize edit set image "ghcr.io/liatrio/liatrio-dora-api:v${{ steps.release_version.outputs.version }}" | |
git add kustomization.yaml | |
- name: Python Semantic Release | |
uses: python-semantic-release/python-semantic-release@master | |
with: | |
github_token: ${{ secrets.TAGGING_TOKEN }} |