-
Notifications
You must be signed in to change notification settings - Fork 651
119 lines (97 loc) · 3.21 KB
/
release.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: Release CI
on:
push:
tags:
- "v*"
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ github.token }}
tag: ${{ github.ref_name }}
writeToFile: false
includeInvalidCommits: true
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"
- name: Restore dependencies
run: dotnet restore ./src/ImeWlConverterCmd
- name: Publish
run: dotnet publish --configuration Release --output ./publish ./src/ImeWlConverterCmd
- name: Archive
run: tar -czf imewlconverter_Linux.tar.gz publish/*
- uses: ncipollo/release-action@v1
with:
artifacts: "imewlconverter_Linux.tar.gz"
allowUpdates: true
body: |
${{ steps.changelog.outputs.changes }}
token: ${{ secrets.GITHUB_TOKEN }}
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Generate CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ github.token }}
tag: ${{ github.ref_name }}
writeToFile: false
includeInvalidCommits: true
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"
- name: Restore dependencies
run: dotnet restore ./src/ImeWlConverterCmd
- name: Publish
run: |
dotnet publish --configuration Release --output ./publish-x64 ./src/ImeWlConverterCmd -a x64
dotnet publish --configuration Release --output ./publish-arm64 ./src/ImeWlConverterCmd -a arm64
- name: Archive
run: |
tar -czf imewlconverter_macOS-x64.tar.gz publish-x64/*
tar -czf imewlconverter_macOS-arm64.tar.gz publish-arm64/*
- uses: ncipollo/release-action@v1
with:
artifacts: "imewlconverter_macOS-x64.tar.gz,imewlconverter_macOS-arm64.tar.gz"
allowUpdates: true
body: |
${{ steps.changelog.outputs.changes }}
token: ${{ secrets.GITHUB_TOKEN }}
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Generate CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ github.token }}
tag: ${{ github.ref_name }}
writeToFile: false
includeInvalidCommits: true
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"
- name: Restore dependencies
run: dotnet restore "./src/IME WL Converter Win"
- name: Publish
run: dotnet publish --configuration Release --output ./publish "./src/IME WL Converter Win"
- name: Archive
run: 7z a -tzip imewlconverter_Windows.zip publish/
- uses: ncipollo/release-action@v1
with:
artifacts: "imewlconverter_Windows.zip"
allowUpdates: true
body: |
${{ steps.changelog.outputs.changes }}
token: ${{ secrets.GITHUB_TOKEN }}