From 3eeed7a161695e7e4e03d64c03f818b47457e23d Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Tue, 24 Oct 2023 15:14:47 +0300 Subject: [PATCH] Simplify CI workflow --- .github/workflows/main.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3fdf434..be6bdb1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,7 +52,7 @@ jobs: with: dotnet-version: 7.0.x - - name: Publish + - name: Publish app run: > dotnet publish LightBulb --output LightBulb/bin/publish/ @@ -79,9 +79,11 @@ jobs: deploy: if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }} + needs: - test - pack + runs-on: ubuntu-latest permissions: actions: read @@ -92,7 +94,7 @@ jobs: uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # 3.0.2 with: name: LightBulb - path: LightBulb + path: LightBulb/ - name: Download artifacts (installer) uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # 3.0.2 @@ -100,12 +102,7 @@ jobs: name: LightBulb-Installer - name: Create package (portable) - shell: pwsh - run: > - Compress-Archive - -Path LightBulb/* - -DestinationPath LightBulb.zip - -Force + run: zip -r LightBulb.zip LightBulb/ - name: Create release env: