-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (50 loc) · 1.28 KB
/
fix-release.yaml
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
name: Fix Release
run-name: Fix ${{ inputs.version }} Release
on:
workflow_dispatch:
inputs:
version:
description: Version
required: true
default: '0.0.0'
permissions: write-all
env:
VERSION: ${{ inputs.version }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
publish-package:
runs-on: ubuntu-latest
continue-on-error: true
env:
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
steps:
- uses: actions/checkout@v4
with:
fetch-tags: true
ref: ${{ inputs.version }}
- uses: asdf-vm/actions/install@v3
- run: make publish-package
publish-image:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
arch: [linux/amd64, linux/arm64]
steps:
- uses: actions/checkout@v4
with:
fetch-tags: true
ref: ${{ inputs.version }}
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- run: make publish-image
env:
DOCKER_DEFAULT_PLATFORM: ${{ matrix.arch }}
publish-release:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: release-drafter/release-drafter@v5
with:
publish: true
version: ${{ inputs.version }}