forked from cdaragorn/Ui-Info-Suite
-
Notifications
You must be signed in to change notification settings - Fork 290
/
build.yaml
37 lines (34 loc) · 1.03 KB
/
build.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
workspace:
base: /code
path: ""
steps:
build:
image: quay.kawa.tf/tqdv/smapi-mod:3.18.4
commands:
- cp UIInfoSuite2/UIInfoSuite2-woodpecker.csproj.local UIInfoSuite2/UIInfoSuite2.csproj.local
- dotnet build -c Release
when:
- event: tag
- event: manual
- event: push
branch: ci-*
prepare-artifacts:
image: busybox
commands:
# Rename the artifact file from "UIInfoSuite2 2.2.9.zip" to "UIInfoSuite2-v2.2.9.zip"
# Notably because GitHub automatically converts spaces to dots, so the file ends up
# being named "UIInfoSuite2.2.2.9.zip" which looks confusing
- cp UIInfoSuite2/bin/Release/*/UIInfoSuite2*.zip "UIInfoSuite2-v${CI_COMMIT_TAG}.zip"
when:
- event: tag
publish:
image: plugins/github-release
settings:
api_key:
from_secret: github_api_key
files: UIInfoSuite2-*.zip
title: ${CI_COMMIT_TAG}
note: _Automatically created by the Woodpecker pipeline_
prerelease: true
when:
- event: tag