From 72788fc74e9d0ef0ef17d273536b5964de2433ae Mon Sep 17 00:00:00 2001 From: charlie-haley <27928201+charlie-haley@users.noreply.github.com> Date: Mon, 19 Apr 2021 13:34:15 +0100 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3524e4f..da66ca5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,15 +33,6 @@ jobs: run: GO111MODULE=on go get -u github.com/wailsapp/wails/cmd/wails - name: Update to prerelease run: wails update -pre -# Setup dotnet - - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 5.0.x - - name: Build flowcontrol-monitor - working-directory: ./src/flowcontrol-monitor - run: dotnet publish -r win-x64 -c Release /p:PublishSingleFile=true --self-contained True - - name: Copy compiled files - run: cp -r ./src/flowcontrol-monitor/bin/Release/net5.0/win-x64/publish/ ./src/flowcontrol/build # Compile wails app - name: Build project if: ${{ !env.ACT }} @@ -54,6 +45,16 @@ jobs: run: | cd ./src/flowcontrol wails build +# Setup dotnet + - uses: actions/setup-dotnet@v1 + with: + dotnet-version: 5.0.x + - name: Build flowcontrol-monitor + working-directory: ./src/flowcontrol-monitor + run: dotnet publish -r win-x64 -c Release /p:PublishSingleFile=true --self-contained True + - name: Copy compiled files + run: cp -r ./src/flowcontrol-monitor/bin/Release/net5.0/win-x64/publish/ ./src/flowcontrol/build +#Zip assets - name: Zip assets run: | zip -rj flowcontrol.zip ./src/flowcontrol/build