-
-
Notifications
You must be signed in to change notification settings - Fork 2
84 lines (76 loc) · 2.23 KB
/
Copy pathrelease.yml
File metadata and controls
84 lines (76 loc) · 2.23 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
name: bundle
on:
push:
tags:
- '*'
env:
UV_LOCKED: 1
permissions:
contents: read
jobs:
build:
name: build dist files
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
with:
version: "0.12.13"
- name: install dependencies
run: uv sync --group bundle
- name: build dist
run: uv build
- name: build binary
run: uv run pyinstaller --distpath bin scim2.spec
- name: rename binary
run: mv bin/scim2 bin/scim2-linux
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: dist
path: dist/*
if-no-files-found: error
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: binary
path: bin/scim2-linux
if-no-files-found: error
release:
name: create Github release
needs: build
runs-on: ubuntu-24.04
permissions:
contents: write
id-token: write
attestations: write
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: binary
path: bin
- uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2
with:
subject-path: bin/scim2-linux
- name: create the release
run: gh release create "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" --verify-tag --notes "" bin/scim2-linux
env:
GH_TOKEN: ${{ github.token }}
publish:
name: release to pypi
needs: build
runs-on: ubuntu-24.04
environment:
name: pypi-release
url: https://pypi.org/project/scim2-cli/
permissions:
id-token: write
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: dist
path: dist
- name: Push build artifacts to PyPI
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2