From ab6628cd1c21beb109a403a5c46075ea419312da Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Fri, 4 Nov 2022 13:31:58 +0400 Subject: build.yml --- .github/workflows/build.yml | 34 ++++++++++++++++++++++++++++++++++ .github/workflows/docs.yml | 3 +-- 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1a543d6 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,34 @@ +name: Build and pack + +on: + # Runs on pushes targeting the default branch + push: + branches: ["master"] + pull_request: + branches: [ master ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + # Single deploy job since we're just deploying + build: + environment: + APP_NAME: nes-containers + PROJECT_PATH: ./nes-containers + OUTPUT_DIR: output + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v2 + with: + dotnet-version: 6.0.x + - name: Build + run: dotnet pack ${{ env.OUTPUT_DIR }} + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: ${{ env.APP_NAME }} + path: ${{ env.OUTPUT_DIR }} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a4422ef..65aa168 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,5 +1,4 @@ -# Simple workflow for deploying static content to GitHub Pages -name: Deploy static content to Pages +name: Deploy documentation on: # Runs on pushes targeting the default branch -- cgit v1.2.3