Skip to content

Merge branch 'dev' into main #109

Merge branch 'dev' into main

Merge branch 'dev' into main #109

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=net7.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