Skip to content

Commit cc071f4

Browse files
authored
github actions
gha
2 parents 48c5666 + 33d3825 commit cc071f4

File tree

4 files changed

+135
-0
lines changed

4 files changed

+135
-0
lines changed

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: nuget
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "02:00"
8+
open-pull-requests-limit: 10
9+
target-branch: "develop"

.github/workflows/develop.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: SourceSDK.ENV.Editor - develop
2+
3+
on:
4+
push:
5+
branches: [ develop ]
6+
7+
env:
8+
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
9+
DOTNET_CLI_TELEMETRY_OPTOUT: true
10+
DOTNET_NOLOGO: true
11+
12+
jobs:
13+
build:
14+
runs-on: windows-latest
15+
steps:
16+
17+
- name: Set the value
18+
run: echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV
19+
20+
- name: Checkout Code
21+
uses: actions/checkout@master
22+
with:
23+
clean: true
24+
fetch-depth: 0
25+
lfs: true
26+
submodules: true
27+
28+
- name: Setup dotnet
29+
uses: actions/setup-dotnet@v2
30+
with:
31+
dotnet-version: '6.0.x'
32+
include-prerelease: true
33+
source-url: https://nuget.pkg.github.com/colhountech/index.json
34+
env:
35+
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
36+
37+
- name: Restore NuGet Packages
38+
run: dotnet restore src/SourceSDK.ENV.Editor.csproj
39+
40+
- name: Build Debug
41+
run: dotnet build src/SourceSDK.ENV.Editor.sln --configuration Debug --force --no-incremental --nologo

.github/workflows/master.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: SourceSDK.ENV.Editor - master
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
env:
8+
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
9+
DOTNET_CLI_TELEMETRY_OPTOUT: true
10+
DOTNET_NOLOGO: true
11+
12+
jobs:
13+
build:
14+
runs-on: windows-latest
15+
steps:
16+
17+
- name: Set the value
18+
run: echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV
19+
20+
- name: Checkout Code
21+
uses: actions/checkout@master
22+
with:
23+
clean: true
24+
fetch-depth: 0
25+
lfs: true
26+
submodules: true
27+
28+
- name: Setup dotnet
29+
uses: actions/setup-dotnet@v2
30+
with:
31+
dotnet-version: '6.0.x'
32+
include-prerelease: true
33+
source-url: https://nuget.pkg.github.com/colhountech/index.json
34+
env:
35+
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
36+
37+
- name: Restore NuGet Packages
38+
run: dotnet restore src/SourceSDK.ENV.Editor.csproj
39+
40+
- name: Build Release
41+
run: dotnet build src/SourceSDK.ENV.Editor.sln --configuration Release --force --no-incremental --nologo

.github/workflows/pr.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: SourceSDK.ENV.Editor - pull request to master
2+
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
7+
env:
8+
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
9+
DOTNET_CLI_TELEMETRY_OPTOUT: true
10+
DOTNET_NOLOGO: true
11+
12+
jobs:
13+
build:
14+
runs-on: windows-latest
15+
steps:
16+
17+
- name: Set the value
18+
run: echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV
19+
20+
- name: Checkout Code
21+
uses: actions/checkout@master
22+
with:
23+
clean: true
24+
fetch-depth: 0
25+
lfs: true
26+
submodules: true
27+
28+
- name: Setup dotnet
29+
uses: actions/setup-dotnet@v2
30+
with:
31+
dotnet-version: '6.0.x'
32+
include-prerelease: true
33+
source-url: https://nuget.pkg.github.com/colhountech/index.json
34+
env:
35+
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
36+
37+
- name: Restore NuGet Packages
38+
run: dotnet restore src/SourceSDK.ENV.Editor.csproj
39+
40+
- name: Build Debug
41+
run: dotnet build src/SourceSDK.ENV.Editor.sln --configuration Debug --force --no-incremental --nologo
42+
43+
- name: Build Release
44+
run: dotnet build src/SourceSDK.ENV.Editor.sln --configuration Release --force --no-incremental --nologo

0 commit comments

Comments
 (0)