-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (58 loc) · 1.69 KB
/
release.yml
File metadata and controls
66 lines (58 loc) · 1.69 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
name: Release
on:
release:
types: [published]
env:
UV_VERSION: 0.8.14
PLATFORMS: linux/amd64,linux/arm64/v8
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
variant:
- bookworm
- trixie
include:
- python: "3.14"
is_default_python: true
- variant: trixie
is_default_variant: true
env:
GIT_SHA_TAG: ${{ github.sha }}-${{ matrix.python }}-${{ matrix.variant }}
steps:
- uses: actions/checkout@v4.1.4
- uses: docker/login-action@v3.1.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: tag ${{ matrix.python }}-${{ matrix.variant }}
uses: ./.github/actions/tag
with:
source: ${{ env.GIT_SHA_TAG }}
target: ${{ matrix.python }}-${{ matrix.variant }}
- if: matrix.is_default_variant
name: tag ${{ matrix.python }} (default variant)
uses: ./.github/actions/tag
with:
source: ${{ env.GIT_SHA_TAG }}
target: ${{ matrix.python }}
- if: matrix.is_default_python
name: tag ${{ matrix.variant }} (default python)
uses: ./.github/actions/tag
with:
source: ${{ env.GIT_SHA_TAG }}
target: ${{ matrix.variant }}
- if: matrix.is_default_python && matrix.is_default_variant
name: tag latest (default python and variant)
uses: ./.github/actions/tag
with:
source: ${{ env.GIT_SHA_TAG }}
target: latest