-
Notifications
You must be signed in to change notification settings - Fork 16
96 lines (81 loc) · 3.13 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# This is a basic workflow to help you get started with Actions
name: Publish Release
# Controls when the workflow will run
on:
workflow_dispatch:
inputs:
configuration:
description: "Build configuration"
required: false
default: "Release"
draft:
description: "Create as draft"
required: false
default: "true"
prerelease:
description: "Create as pre-release"
required: false
default: "true"
env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: WorkshopTool.sln
BUILD_CONFIGURATION: ${{ github.event.inputs.configuration || 'Release' }}
BUILD_FRAMEWORK: net48
BUILD_FRAMEWORK_ME: net461
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
name: Checkout Sources
id: checkout
with:
fetch-depth: 0
- uses: ./.github/actions/setup
name: Setup Environment
- uses: ./.github/actions/build
name: Build Solution
with:
solution: ${{env.SOLUTION_FILE_PATH}}
configuration: ${{env.BUILD_CONFIGURATION}}
- uses: ./.github/actions/test
name: Run Tests
with:
package: Tests\bin\${{env.BUILD_CONFIGURATION}}\${{env.BUILD_FRAMEWORK}}\Phoenix.WorkshopTool.Tests.dll
settings: Tests\tests.runsettings
- uses: ./.github/actions/changelog
name: Generate Changelog
id: changelog
with:
project-path: Directory.Build.props
- uses: actions/upload-artifact@v4
name: Publish SEWT Artifacts
id: artifact-sewt
with:
name: SEWT
path: SEWorkshopTool/bin/${{env.BUILD_CONFIGURATION}}/${{env.BUILD_FRAMEWORK}}/SEWorkshopTool*.zip
- uses: actions/upload-artifact@v4
name: Publish MEWT Artifacts
id: artifact-mewt
with:
name: MEWT
path: MEWorkshopTool/bin/${{env.BUILD_CONFIGURATION}}/${{env.BUILD_FRAMEWORK_ME}}/MEWorkshopTool*.zip
- uses: ncipollo/release-action@v1
name: Publish Release
id: publish-release
with:
artifacts: "**/*WorkshopTool*.zip"
token: ${{secrets.PAT_WORKFLOW}}
name: Workshop Tool v${{steps.changelog.outputs.version-prefix}}
tag: v${{steps.changelog.outputs.version}}
commit: master
draft: ${{github.event.inputs.draft}}
prerelease: ${{github.event.inputs.prerelease}}
allowUpdates: true
body: |
Changelog:
${{env.CHANGELOG}}
To Install: Read the installation instructions listed on the [readme](https://github.com/Gwindalmir/SEWorkshopTool/tree/master#installation).
PLEASE NOTE: This is a command-line (terminal) application. You cannot just double-click it to run it.
To run this, from the Bin64 folder, *Shift+Right* click in an empty area off to the side, then select **Open Powershell window here**. After the blue window appears, type the command with arguments you need, such as `.\SEWorkshopTool.exe --help` and then press the ENTER key.