-
-
Notifications
You must be signed in to change notification settings - Fork 107
37 lines (30 loc) · 1.18 KB
/
create-release-zip-by-newest-tag.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
name: 🔥 Create Release file by newest tag
on:
push:
tags:
- 'v*'
jobs:
build-application:
name: Build and release application
runs-on: windows-latest
env:
Project_File_Path: src\StatisticsAnalysisTool\StatisticsAnalysisTool.csproj
steps:
- name: 🛒 Checkout main branch
uses: actions/checkout@v3
with:
ref: main
- name: 🚧 Publish StatisticsAnalysisTool application in directory
run: |
dotnet publish $env:Project_File_Path -c Release -p:Platform=x64 -p:PublishDir=bin\Release -p:PublishProtocol=FileSystem -p:TargetFramework=net8.0-windows -p:RuntimeIdentifier=win-x64 -p:SelfContained=false -p:PublishSingleFile=true -p:PublishReadyToRun=false
- name: 🛠 Create release zip file
uses: vimtor/action-zip@v1
with:
files: src\StatisticsAnalysisTool\bin\Release
dest: StatisticsAnalysis-AlbionOnline-${{ github.ref_name }}-x64.zip
- name: 🚀 Upload release zip file to newest tag
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
StatisticsAnalysis-AlbionOnline-${{ github.ref_name }}-x64.zip