Skip to content

Commit

Permalink
Create main-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
scale-tone authored May 18, 2024
1 parent 6c4eb21 commit f072bd1
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

name: main-build

on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: npm install durablefunctionsmonitor.react
run: npm install -legacy-peer-deps
working-directory: durablefunctionsmonitor.react
- name: npm build durablefunctionsmonitor.react
run: npm run build
working-directory: durablefunctionsmonitor.react

- name: copy statics to durablefunctionsmonitor.dotnetbackend/DfmStatics
run: cp -r durablefunctionsmonitor.react/build durablefunctionsmonitor.dotnetbackend/DfmStatics

- name: copy durablefunctionsmonitor.dotnetbackend to ArtifactStagingDirectory
run: cp -r durablefunctionsmonitor.dotnetbackend "${{ runner.temp }}/durablefunctionsmonitor.dotnetbackend"

0 comments on commit f072bd1

Please sign in to comment.