first commit

This commit is contained in:
2025-07-02 09:46:22 +03:00
commit a9ff25f69b
31 changed files with 9934 additions and 0 deletions

57
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,57 @@
name: Create Release
on:
push:
tags:
- "*.*.*.*"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
env:
DALAMUD_HOME: /tmp/dalamud
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 9.0.x
- name: Download Dalamud Latest
run: |
wget https://goatcorp.github.io/dalamud-distrib/latest.zip -O ${{ env.DALAMUD_HOME }}.zip
unzip ${{ env.DALAMUD_HOME }}.zip -d ${{ env.DALAMUD_HOME }}
- name: Restore Project
run: dotnet restore
- name: Build
run: |
$ver = '${{ github.ref_name }}'
dotnet build --no-restore --configuration Release -p:Version=$ver -p:AssemblyVersion=$ver -p:FileVersion=$ver
- name: Create Release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload Release Asset with curl
run: |
curl \
-X POST \
-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"