-
Notifications
You must be signed in to change notification settings - Fork 71
56 lines (50 loc) · 1.87 KB
/
publish.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
name: Publish
on:
push:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.0.x
- name: Build
run: echo ${{ github.sha }} > Release.txt
- name: Test
run: cat Release.txt
- name: Publish win-x64
run: dotnet publish -p:PublishProfile=win-x64.pubxml Obj2Tiles
- name: Publish win-arm64
run: dotnet publish -p:PublishProfile=win-arm64.pubxml Obj2Tiles
- name: Publish linux-x64
run: dotnet publish -p:PublishProfile=linux-x64.pubxml Obj2Tiles
- name: Publish linux-arm64
run: dotnet publish -p:PublishProfile=linux-arm64.pubxml Obj2Tiles
- name: Publish osx-x64
run: dotnet publish -p:PublishProfile=osx-x64.pubxml Obj2Tiles
- name: Zip win-x64
run: cd Obj2Tiles/bin/Release/net8.0/publish/win-x64/ && zip -r ../../../../../../Obj2Tiles-Win64.zip *
- name: Zip win-arm64
run: cd Obj2Tiles/bin/Release/net8.0/publish/win-arm64/ && zip -r ../../../../../../Obj2Tiles-WinArm64.zip *
- name: Zip linux-x64
run: cd Obj2Tiles/bin/Release/net8.0/publish/linux-x64/ && zip -r ../../../../../../Obj2Tiles-Linux64.zip *
- name: Zip linux-arm64
run: cd Obj2Tiles/bin/Release/net8.0/publish/linux-arm64/ && zip -r ../../../../../../Obj2Tiles-LinuxArm64.zip *
- name: Zip osx-x64
run: cd Obj2Tiles/bin/Release/net8.0/publish/osx-x64/ && zip -r ../../../../../../Obj2Tiles-Osx64.zip *
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
Release.txt
LICENSE.md
Obj2Tiles-Win64.zip
Obj2Tiles-WinArm64.zip
Obj2Tiles-Linux64.zip
Obj2Tiles-LinuxArm64.zip
Obj2Tiles-Osx64.zip