-
Notifications
You must be signed in to change notification settings - Fork 3
58 lines (45 loc) · 1.35 KB
/
release-build.yaml
File metadata and controls
58 lines (45 loc) · 1.35 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
name: Build Release
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
- name: Configure Docker for multi-arch builds
uses: docker/setup-qemu-action@v3
- name: Set up Docker buildx for multi-arch builds
uses: docker/setup-buildx-action@v3
- name: Log in to the GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build, tag, and push docker image to the GitHub Container Registry
run: make push
- name: Install poetry
run: pipx install poetry
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.13.x"
cache: "poetry"
- name: Run python build
run: |
poetry version ${{ github.ref_name }}
poetry build --no-interaction
- name: Update release
uses: softprops/action-gh-release@v2
with:
files: |
dist/*
CHANGELOG.md
tag_name: "${{ github.ref_name }}"
- run: |
echo "Finished building and pushing containers for version ${{ github.ref_name }}."