wabbajack/.github/workflows/release.yml

51 lines
1.8 KiB
YAML
Raw Normal View History

2021-01-04 03:38:47 +00:00
name: Create Release
2021-01-04 03:38:12 +00:00
on:
workflow_dispatch:
inputs:
2021-01-04 03:43:42 +00:00
version:
description: 'Release Version'
required: true
2021-01-04 03:38:12 +00:00
jobs:
build:
2021-01-04 03:45:42 +00:00
runs-on: self-hosted
2021-01-04 03:38:12 +00:00
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
2021-01-04 03:48:07 +00:00
dotnet-version: 5.0.101
2021-01-04 03:38:12 +00:00
- name: Restore dependencies
run: dotnet restore
2021-01-04 21:30:00 +00:00
- name: Remove Previous App
2021-01-04 21:32:29 +00:00
uses: JesseTG/rm@v1.0.0
2021-01-04 21:30:00 +00:00
with:
2021-05-18 04:02:56 +00:00
path: z:\tmp\PublishApp
2021-01-04 21:30:00 +00:00
- name: Remove Previous Launcher
2021-01-04 21:32:29 +00:00
uses: JesseTG/rm@v1.0.0
2021-01-04 21:30:00 +00:00
with:
2021-05-18 03:44:45 +00:00
path: z:\tmp\PublishLauncher
2021-01-04 21:30:00 +00:00
2021-01-04 03:38:12 +00:00
- name: Build
run: dotnet build --no-restore
- name: Publish App
2021-05-18 04:02:56 +00:00
run: dotnet publish Wabbajack\Wabbajack.csproj --runtime win10-x64 --configuration Release /p:Platform=x64 -o z:\tmp\PublishApp --self-contained
2021-01-04 03:38:12 +00:00
- name: Publish Launcher
2021-05-18 04:02:56 +00:00
run: dotnet publish Wabbajack.Launcher\Wabbajack.Launcher.csproj --runtime win10-x64 --configuration Release /p:Platform=x64 -o z:\tmp\PublishLauncher --self-contained
2021-01-04 21:13:01 +00:00
- name: Sign App
2021-05-18 04:02:56 +00:00
run: C:\"Program Files (x86)"\"Windows Kits"\10\bin\10.0.17763.0\x86\signtool.exe sign /sm z:\tmp\PublishApp\Wabbajack.exe
2021-01-04 22:47:58 +00:00
shell: cmd
2021-01-04 21:13:01 +00:00
- name: Sign Launcher
2021-05-18 04:02:56 +00:00
run: C:\"Program Files (x86)"\"Windows Kits"\10\bin\10.0.17763.0\x86\signtool.exe sign /sm z:\tmp\PublishLauncher\Wabbajack.exe
2021-01-04 22:47:58 +00:00
shell: cmd
2021-01-04 23:21:44 +00:00
- name: Create Release Folder
2021-05-18 03:44:45 +00:00
run: mkdir z:\wabbajack_releases\${{ github.event.inputs.version }}
2021-01-04 21:30:00 +00:00
- name: Copy Launcher
2021-05-18 03:44:45 +00:00
run: copy z:\tmp\PublishLauncher\Wabbajack.exe z:\wabbajack_releases\${{ github.event.inputs.version }}\Wabbajack.exe
2021-01-04 21:30:00 +00:00
- name: Zip Release
2021-05-18 03:44:45 +00:00
run: Compress-Archive -Path c:\tmp\PublishApp\* -DestinationPath z:\wabbajack_releases\${{ github.event.inputs.version }}\${{ github.event.inputs.version }}.zip
2021-01-04 21:13:01 +00:00