forked from Pespiri/FPS-Counter
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (43 loc) · 1.56 KB
/
master.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
name: Build
on:
workflow_dispatch:
push:
branches: [ master ]
paths:
- 'FPS Counter.sln'
- 'FPS Counter/**'
- '.github/workflows/main.yml'
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: GetStrippedRefs
env:
FILES_URL: ${{ secrets.BSFILES_URL }}
run: wget --no-check-certificate "$FILES_URL" -q -O bsfiles.zip
- name: ExtractRefs
run: unzip -q -n bsfiles.zip -d ${{github.workspace}}/Refs
- name: Download Mod Dependencies
uses: Goobwabber/download-beatmods-deps@1.2
with:
manifest: ${{github.workspace}}/FPS Counter/manifest.json
- name: Build
id: Build
run: dotnet build --configuration Release
- name: GitStatus
run: git status
- name: Echo Filename
run: echo $BUILDTEXT \($ASSEMBLYNAME\)
env:
BUILDTEXT: Filename=${{ steps.Build.outputs.filename }}
ASSEMBLYNAME: AssemblyName=${{ steps.Build.outputs.assemblyname }}
- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
name: ${{ steps.Build.outputs.filename }}
path: ${{ steps.Build.outputs.artifactpath }}