-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.48 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
name: release
on:
workflow_dispatch:
inputs:
version:
description: Version
required: true
jobs:
release:
runs-on: windows-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: prepare (dotnet)
uses: actions/setup-dotnet@v1.9.0
with:
dotnet-version: '6.x'
- name: prepare (dalamud)
run: |
Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/stg/latest.zip -OutFile dalamud.zip
Expand-Archive -Force dalamud.zip "$env:AppData\XIVLauncher\addon\Hooks\dev\"
echo "APPDATA=$env:AppData" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf-8 -Append
- name: prebuild (dotnet restore)
run: dotnet restore
- name: build
run: dotnet build --configuration Release --no-restore --nologo /p:Version=${{ github.event.inputs.version }}
env:
DOTNET_CLI_TELEMETRY_OPTOUT: false
- name: upload
uses: actions/upload-artifact@v2
with:
name: Resonant
path: ${{ env.APPDATA }}\XIVLauncher\devPlugins\Resonant\Resonant\latest.zip
if-no-files-found: error
- name: create release
uses: softprops/action-gh-release@v1
with:
name: Resonant ${{ github.event.inputs.version }}
tag_name: ${{ github.event.inputs.version }}
files: ${{ env.APPDATA }}\XIVLauncher\devPlugins\Resonant\Resonant\*
fail_on_unmatched_files: true