-
Notifications
You must be signed in to change notification settings - Fork 40
38 lines (35 loc) · 1.03 KB
/
build-repl.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
name: Bebop WebAssembly REPL
on:
workflow_dispatch:
push:
paths:
- "Repl/**"
pull_request:
paths:
- "Repl/**"
jobs:
build-repl:
env:
REPL_ROOT: ${{github.workspace}}/Repl
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- name: Get Enviorment Variables
id: dotenv
uses: falti/[email protected]
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: "7.0.x" # SDK Version to use; x will use the latest version of the 7.0 channel
include-prerelease: true
- name: Restore Project
run: dotnet restore
working-directory: ${{env.REPL_ROOT}}
- name: Build REPL
run: dotnet publish -c Release -p:ReleaseVersion=${{ steps.dotenv.outputs.version }}
working-directory: ${{env.REPL_ROOT}}
- name: Upload Package
uses: actions/upload-artifact@v2
with:
name: bebop-repl-latest
path: ${{github.workspace}}/bin/repl/Release/publish/wwwroot/