From ad2f1ae26250df72c6e64ad6a6e6238cea0a8158 Mon Sep 17 00:00:00 2001 From: Jan Wichelmann Date: Mon, 23 Aug 2021 19:36:25 +0200 Subject: [PATCH] Build from parent directory in workflows --- .github/workflows/build-microwalk.yml | 5 ++--- .github/workflows/release.yml | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-microwalk.yml b/.github/workflows/build-microwalk.yml index f8058e2..1100628 100644 --- a/.github/workflows/build-microwalk.yml +++ b/.github/workflows/build-microwalk.yml @@ -3,10 +3,10 @@ name: Build Microwalk on: push: paths: - - 'Microwalk/*' + - 'Microwalk*' pull_request: paths: - - 'Microwalk/*' + - 'Microwalk*' workflow_dispatch: jobs: @@ -20,6 +20,5 @@ jobs: dotnet-version: 5.0.x - name: Build run: | - cd Microwalk dotnet build Microwalk/Microwalk.csproj --configuration Release dotnet build Microwalk.Plugins.PinTracer/Microwalk.Plugins.PinTracer.csproj --configuration Release diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index be3ebe1..f2662f1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,7 +30,6 @@ jobs: dotnet-version: 5.0.x - name: Build & Pack run: | - cd Microwalk dotnet publish Microwalk/Microwalk.csproj --configuration Release --output publish --no-self-contained dotnet publish Microwalk.Plugins.PinTracer/Microwalk.Plugins.PinTracer.csproj --configuration Release --output publish --no-self-contained cd publish @@ -41,7 +40,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./Microwalk/publish/Microwalk.zip + asset_path: ./publish/Microwalk.zip asset_name: Microwalk.zip asset_content_type: application/zip