Skip to content

Commit aa2cc8d

Browse files
committed
ci: [skip ci] Adding assets upload when releasing
Signed-off-by: Vincent Boutour <[email protected]>
1 parent 5c46cbf commit aa2cc8d

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.github/workflows/tag.yaml renamed to .github/workflows/release.yaml

+19-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
name: Tag
2+
name: Release
33

44
on:
5-
push:
6-
tags:
7-
- "*"
5+
release:
6+
types:
7+
- released
88

99
env:
1010
SCRIPTS_NO_INTERACTIVE: "true"
@@ -15,12 +15,25 @@ defaults:
1515

1616
jobs:
1717
tag:
18-
name: Tag
18+
name: Release
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v2
23-
- name: Tag
23+
- name: Setup Golang
24+
uses: actions/setup-go@v2
25+
with:
26+
go-version: "^1.16"
27+
- name: Build
28+
run: make init
29+
- name: Assets
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
run: |
33+
curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/main/bootstrap" | bash -s -- "-c" "release"
34+
export GIT_TAG="$(basename ${{ github.ref }})"
35+
scripts/release build assets clean
36+
- name: Docker
2437
env:
2538
DOCKER_USER: ${{ secrets.DOCKER_USER }}
2639
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}

0 commit comments

Comments
 (0)