Skip to content

Commit 06f912f

Browse files
authored
feat: add run-console.yml gh action
0 parents  commit 06f912f

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/run-console.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Run Console Project
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
branch:
7+
description: 'Branch'
8+
required: false
9+
default: 'develop'
10+
11+
jobs:
12+
run-console:
13+
runs-on: ubuntu-22.04
14+
15+
steps:
16+
- name: Checkout Public Repository
17+
uses: actions/checkout@v3
18+
19+
- name: Clone Private Repository
20+
env:
21+
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
22+
run: |
23+
git clone --branch ${{ github.event.inputs.branch || 'develop' }} https://x-access-token:${PAT_TOKEN}@github.com/educup/educup-server.git
24+
25+
- name: Setup .NET Core 3.1.x
26+
uses: actions/setup-dotnet@v4
27+
with:
28+
dotnet-version: '3.1.x'
29+
30+
- name: Restore .NET packages
31+
run: dotnet restore educup-server/Playground/VAConsole/VAConsole.csproj --locked-mode
32+
33+
- name: Build the project
34+
run: dotnet build educup-server/Playground/VAConsole/VAConsole.csproj --configuration Release
35+
36+
- name: Run the console project
37+
run: dotnet run --project educup-server/Playground/VAConsole/VAConsole.csproj --configuration Release

0 commit comments

Comments
 (0)