Add build workflow and refactor release workflow for improved clarity

This commit is contained in:
2025-07-02 10:12:25 +03:00
parent 1634960492
commit ee24c6ee5a
2 changed files with 44 additions and 8 deletions

View File

@@ -1,15 +1,12 @@
name: Create Release
name: Build and Release
on:
push:
tags:
- "*.*.*.*"
permissions:
contents: write
jobs:
release:
Build:
runs-on: ubuntu-latest
env:
DALAMUD_HOME: /tmp/dalamud
@@ -30,7 +27,7 @@ jobs:
- name: Restore Project
run: dotnet restore
- name: Build
- name: Build Project
run: dotnet build --configuration Release CharacterSelectPlugin/CharacterSelectPlugin.csproj -p:AssemblyVersion=${{ github.ref_name }}
- name: Create Release
@@ -51,5 +48,4 @@ jobs:
-H "Authorization: token ${{ gitea.token }}" \
-H "Content-Type: application/zip" \
--data-binary @CharacterSelectPlugin/bin/Release/CharacterSelectPlugin/latest.zip \
"${{ steps.create_release.outputs.upload_url }}?name=latest.zip"
"${{ steps.create_release.outputs.upload_url }}?name=latest.zip"