add plugin.json #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Create Release | |
| on: | |
| push: | |
| tags: '*' | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v1 | |
| with: | |
| dotnet-version: '9.x.x' | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Download Dalamud | |
| run: | | |
| Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/stg/latest.zip -OutFile latest.zip | |
| Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev" | |
| - name: Build | |
| run: | | |
| $ver = '${{ github.ref }}' -replace 'refs/tags/','' | |
| invoke-expression 'dotnet build --no-restore --configuration Release --nologo -p:Version=$ver -p:FileVersion=$ver -p:AssemblyVersion=$ver' | |
| - name: Archive | |
| run: | | |
| $ver = '${{ github.ref }}' -replace 'refs/tags/','' | |
| Compress-Archive -Path MareSynchronos\bin\x64\Release\* -DestinationPath ConclavePlugin.zip | |
| - name: Upload a Build Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| path: | | |
| ./MareSynchronos/bin/x64/Release/* | |
| - name: Upload Release | |
| uses: svenstaro/upload-release-action@v2 | |
| with: | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| file: ./ConclaveClient.zip | |
| file_glob: true | |
| tag: ${{ github.ref }} | |
| overwrite: true |