Skip to content

Merge pull request #10 from intel/feat/adding-ossf #15

Merge pull request #10 from intel/feat/adding-ossf

Merge pull request #10 from intel/feat/adding-ossf #15

name: semantic release
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
env:
GH_TOKEN: ${{ secrets.RELEASE_TOKEN }}
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
actions: write
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
fetch-depth: 0
persist-credentials: false
- name: Reset branch
run: |
git reset --hard ${{ github.sha }}
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.12.10'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install setuptools wheel python-semantic-release build
- name: Release
run: |
# symbolic link to fix an error when running a build_command
sudo ln -s /home/runner/_work/_tool/Python/3.12.10/x64/lib/libpython3.12.so.1.0 /usr/lib/libpython3.12.so.1.0
semantic-release version
semantic-release publish