Files
GlamourBrowser/.github/workflows/release.yml
Administrator a5d3b2092d
Some checks failed
Build and Release / Build (push) Failing after 41s
first commit
2026-01-01 13:06:22 +02:00

53 lines
1.5 KiB
YAML

name: Build and Release
on:
push:
tags:
- "*.*.*.*"
jobs:
Build:
runs-on: ubuntu-latest
env:
DALAMUD_HOME: /tmp/dalamud
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 10.0.x
- name: Download Dalamud Latest
run: |
wget https://goatcorp.github.io/dalamud-distrib/stg/latest.zip -O ${{ env.DALAMUD_HOME }}.zip
unzip ${{ env.DALAMUD_HOME }}.zip -d ${{ env.DALAMUD_HOME }}
- name: Restore Project
run: dotnet restore
- name: Build Project
run: dotnet build --configuration Release GlamourBrowser/GlamourBrowser.csproj -p:AssemblyVersion=${{ github.ref_name }}
- 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 @bin/GlamourBrowser/latest.zip \
"${{ steps.create_release.outputs.upload_url }}?name=latest.zip"