forked from fortio/fortio
-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (41 loc) · 1.27 KB
/
manual-build.yml
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
name: Manual Release Update/Rebuild
permissions:
actions: read
contents: write
packages: write
on:
workflow_dispatch:
inputs:
tag:
description: 'Tag to rebuild'
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: test
run: |
echo "tag is ${{ github.event.inputs.tag }}"
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # pin@v3
with:
ref: ${{ github.event.inputs.tag }}
- name: Set up QEMU
uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # pin@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@ecf95283f03858871ff00b787d79c419715afc34 # pin@v2
- name: Build
id: build
run: |
make info
make release
VERSION=$(make echo-version)
PACKAGE_VERSION=$(make echo-package-version)
echo "Version $VERSION, Package version $PACKAGE_VERSION"
- name: Upload release artifacts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag_name="${{ github.event.inputs.tag }}"
echo "tag_name=$tag_name"
gh release upload "${tag_name}" release/*.{tgz,zip,rpm,deb,gz}