-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.11 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build and Release
permissions:
contents: write
on:
push:
branches:
- main
jobs:
bump-version:
if: "!startsWith(github.event.head_commit.message, 'bump:')"
runs-on: ubuntu-latest
name: Bump version and create changelog with commitizen
steps:
- name: Check out
uses: actions/checkout@v4
with:
fetch-depth: 0
ssh-key: "${{ secrets.SSH_KEY }}"
# token: ${{ secrets.PAT }}
- name: Bump version and create changelog
uses: commitizen-tools/[email protected]
with:
push: false
# github_token: ${{ secrets.PAT }}
- name: Push using ssh
run: |
git push origin main --tags
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Build package
run: uv build
- name: Release
uses: softprops/[email protected]
with:
files: dist/*
tag_name: ${{ env.REVISION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}