--- /dev/null
+when:
+ - event: tag
+ - event: push
+ - event: pull_request
+
+steps:
+ - name: prepare dalamud
+ image: alpine
+ commands:
+ - apk add --no-cache unzip
+ - wget https://goatcorp.github.io/dalamud-distrib/latest.zip -O /tmp/dalamud.zip
+ - unzip /tmp/dalamud.zip -d $CI_WORKSPACE/.dalamud
+
+ - name: dotnet restore
+ image: mcr.microsoft.com/dotnet/sdk:8.0-jammy
+ commands:
+ - dotnet restore --packages $CI_WORKSPACE/.nuget
+
+ - name: dotnet build
+ image: mcr.microsoft.com/dotnet/sdk:8.0-jammy
+ commands:
+ - export DALAMUD_HOME=$CI_WORKSPACE/.dalamud/
+ - echo "dotnet build Questionable/Questionable.csproj -c Release -f net8.0-windows -p:DalamudLibPath=$DALAMUD_HOME -maxcpucount:1 --source $CI_WORKSPACE/.nuget --no-restore"
+ - dotnet build Questionable/Questionable.csproj -c Release -f net8.0-windows -p:DalamudLibPath=$DALAMUD_HOME -maxcpucount:1 --source $CI_WORKSPACE/.nuget --no-restore
+
+ - name: prepare release files
+ image: alpine
+ commands:
+ - mkdir release
+ - mv Questionable/dist/Questionable/latest.zip release/Questionable-${CI_COMMIT_TAG##v}.zip
+ - mv Questionable/dist/Questionable/Questionable.json release/Questionable-${CI_COMMIT_TAG##v}.json
+ when:
+ - event: tag
+
+ - name: prepare release
+ image: woodpeckerci/plugin-release
+ settings:
+ title: ${CI_COMMIT_TAG}
+ draft: true
+ files:
+ - "release/*.zip"
+ - "release/*.json"
+ api_key:
+ from_secret: ACCESS_TOKEN
+ checksum: sha256
+ when:
+ - event: tag