Merge pull request #24 from intel/dependabot/pip/setuptools-80.9.0 #27
This file contains hidden or 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: semantic release | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: false | |
env: | |
GH_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
permissions: | |
contents: read | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
actions: write | |
id-token: write | |
steps: | |
- name: Harden the runner (Audit all outbound calls) | |
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1 | |
with: | |
egress-policy: audit | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
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@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | |
with: | |
python-version: '3.12.10' | |
cache: 'pip' | |
- name: Install dependencies | |
shell: bash | |
run: pip install -r requirements.txt | |
- 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 |