Repository navigation
64 lines (55 loc) · 1.49 KB
/
Copy pathrelease.yml
File metadata and controls
64 lines (55 loc) · 1.49 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
---
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: build dist
run: uv build
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: artifacts
path: dist/*
if-no-files-found: error
release:
name: create Github release
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
- name: create the release
run: gh release create "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" --verify-tag --notes ""
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/pytest-scim2-server/
permissions:
id-token: write
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: artifacts
path: dist
- name: Push build artifacts to PyPI
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2