Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Endergreen12 committed Aug 2, 2024
1 parent ba23629 commit f2fc64e
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@ name: Build and Release
on:
workflow_dispatch:

env:
TARGET_PROJECT_DIR_NAME: Blue-Archive-Catalog-Converter
BUILD_COMMAND: dotnet publish -r $ARCH -o output

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
defaults:
run:
working-directory: ${{ env.TARGET_PROJECT_DIR_NAME }}

steps:
- uses: actions/checkout@v4
Expand All @@ -18,13 +25,16 @@ jobs:
with:
dotnet-version: 8.0.x
- name: Build for Windows x64
run: dotnet publish Blue-Archive-Catalog-Converter/Blue-Archive-Catalog-Converter.csproj -r win-x64 -p:PublishSingleFile=true -p:PublishTrimmed=true --sc true --artifacts-path output
env:
ARCH: win-x64
run: ${{ env.BUILD_COMMAND }}
- name: Build for Linux x64
run: dotnet publish Blue-Archive-Catalog-Converter/Blue-Archive-Catalog-Converter.csproj -r linux-x64 -p:PublishSingleFile=true -p:PublishTrimmed=true --sc true --artifacts-path output
env:
ARCH: linux-x64
run: ${{ env.BUILD_COMMAND }}
- name: Release to Github
uses: softprops/action-gh-release@v2
with:
draft: true
files: |
output/publish/Blue-Archive-Catalog-Converter/release_win-x64/Blue-Archive-Catalog-Converter.exe
output/publish/Blue-Archive-Catalog-Converter/release_linux-x64/Blue-Archive-Catalog-Converter
${{ env.TARGET_PROJECT_DIR_NAME }}/output/*

0 comments on commit f2fc64e

Please sign in to comment.