-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (47 loc) · 1.33 KB
/
release.yml
File metadata and controls
57 lines (47 loc) · 1.33 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Release
on:
push:
branches:
- main
- beta
permissions:
contents: write
packages: write
id-token: write
checks: read
defaults:
run:
working-directory: ./
jobs:
publish-package:
runs-on: ubuntu-latest
name: To Artifactory
steps:
- name: Harden runner
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 0
- name: Setup uv
uses: astral-sh/setup-uv@v7
with:
python-version: "3.10"
- name: Install dependencies
run: uv sync --group dev --frozen
- name: Setup Node.js
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: 'lts/*'
- name: Run semantic-release
uses: mridang/action-semantic-release@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
allow-force-install: 'true'
env:
DOCKER_REGISTRY_USER: ${{ github.actor }}
DOCKER_REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}