Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

Commit

Permalink
ci: configure semantic release in GitHub Action (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
NTGNguyen authored Jan 18, 2025
1 parent 27aba0c commit 03b17db
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/sematic-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: sematic-release

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
concurrency: release

permissions:
id-token: write
contents: write

steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.sha }}

- name: Setup | Force correct release branch on workflow sha
run: |
git checkout -B ${{ github.ref_name }} ${{ github.sha }}
- name: Update Semantic Version Release
id: release
uses: python-semantic-release/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
git_committer_name: 'github-actions'
git_committer_email: '[email protected]'
changelog: 'false'

- name: Upload to GitHub Release Assets
uses: python-semantic-release/[email protected]
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.release.outputs.tag }}

0 comments on commit 03b17db

Please sign in to comment.