-
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (46 loc) · 1.83 KB
/
dotnet.yml
File metadata and controls
58 lines (46 loc) · 1.83 KB
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
name: Build Kryptonite
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: windows-2022
steps:
- name: Checkout ✨
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Add msbuild to PATH 🔗
uses: microsoft/setup-msbuild@v1.1
- name: Install dependencies 📦
run: nuget restore Kryptonite.sln
- name: Build Kryptonite for release 🧱
run: msbuild -nologo -v:m -p:Configuration=Release Kryptonite.sln
- name: Download DepotDownloader 🧱
run: curl https://github.com/SteamRE/DepotDownloader/releases/download/DepotDownloader_2.4.5/depotdownloader-2.4.5.zip -J -L -o ${{ github.workspace }}\Kryptonite\bin\Release\net6.0-windows\DepotDownloader.zip
- name: Extract DepotDownloader for release 🧱
run: 7z x ${{ github.workspace }}\Kryptonite\bin\Release\net6.0-windows\DepotDownloader.zip -o${{ github.workspace }}\Kryptonite\bin\Release\net6.0-windows\DepotDownloader
- name: Cleanup DepotDownloader 🧱
run: del ${{ github.workspace }}\Kryptonite\bin\Release\net6.0-windows\DepotDownloader.zip
- name: Archive Kryptonite 🧱
uses: thedoctor0/zip-release@master
with:
path: ${{ github.workspace }}\Kryptonite\bin\Release\.
exclusions: '*.xml* *.cmd* *.pdb* libraries\*.xml* libraries\*.pdb*'
type: 'zip'
filename: 'Kryptonite.zip'
- name: Generate release tag 📦
id: tag
run: |
echo "::set-output name=release_tag::Release_$(date +"%Y.%m.%d_%H-%M")"
- name: Upload Release 📦
id: upload-release-asset
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag.outputs.release_tag }}
files: |
Kryptonite.zip