-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
66 lines (54 loc) · 2.03 KB
/
appveyor.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
image: Visual Studio 2022
branches:
# whitelist
only:
- main
skip_tags: true
skip_non_tags: false
version: '{build}'
install:
- ps: $env:package_version = (Invoke-WebRequest -URI "https://api.github.com/repos/JukaLang/juka/releases/latest" | ConvertFrom-Json).tag_name
- ps: $env:changelog = (Invoke-WebRequest -URI "https://api.github.com/repos/JukaLang/juka/releases/latest" -UseBasicParsing | ConvertFrom-Json).body.Split([Environment]::NewLine) | Select -Skip 1 | Out-String
- ps: Update-AppveyorBuild -Version "$env:package_version"
dotnet_csproj:
patch: true
file: 'JukaIDE.csproj'
version: $(APPVEYOR_BUILD_VERSION)
package_version: $(APPVEYOR_BUILD_VERSION)
assembly_version: $(APPVEYOR_BUILD_VERSION)
file_version: $(APPVEYOR_BUILD_VERSION)
informational_version: $(APPVEYOR_BUILD_VERSION)
build_script:
- ps: |
$env:MY_XT= "$($env:APPVEYOR_REPO_COMMIT_MESSAGE)"
$env:MY_AV= $env:APPVEYOR_BUILD_VERSION
if ($env:APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED)
{
$env:MY_XT= "$($env:APPVEYOR_REPO_COMMIT_MESSAGE) \n $($env:APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED)"
}
if ($env:APPVEYOR_BUILD_VERSION -notlike "0.*")
{
$env:MY_AV="$($env:package_version)-Nightly-$($env:APPVEYOR_BUILD_VERSION)"
}
- dotnet workload install wasm-tools
- dotnet add package JukaCompiler
- dotnet publish -c Release JukaIDE.sln
configuration: Release
artifacts:
- path: 'bin\Release\net8.0\publish\wwwroot'
name: Juka_IDE_$(APPVEYOR_BUILD_VERSION)
type: zip
deploy:
# Deploy to GitHub Releases
- provider: GitHub
artifact: /.*\.zip/
tag: "$(MY_AV)"
release: "📦 Juka IDE v$(MY_AV)"
description: "## 🍂 Juka Changes \n $(changelog) \n ## ⌨️ Juka IDE Changes \n $(MY_XT)"
auth_token:
secure: v/vwWedaFbZZt7xBtarpKXtoaub9EY/zbvwdUz9Yccsc0rykWiDaV1zYuMjDb8kn
draft: false
prerelease: false
on:
branch: main # release from master branch only
APPVEYOR_REPO_TAG: false # deploy on tag push only