Skip to content

Commit

Permalink
Simplify CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Oct 24, 2023
1 parent a805fdb commit 3eeed7a
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
with:
dotnet-version: 7.0.x

- name: Publish
- name: Publish app
run: >
dotnet publish LightBulb
--output LightBulb/bin/publish/
Expand All @@ -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
Expand All @@ -92,20 +94,15 @@ 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
with:
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:
Expand Down

0 comments on commit 3eeed7a

Please sign in to comment.