Skip to content

Commit

Permalink
Workflow improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Oct 28, 2023
1 parent 867fc5a commit b19a5f5
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: main

on: [push, pull_request]
on:
push:
pull_request:

env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
Expand Down Expand Up @@ -70,12 +72,14 @@ jobs:
with:
name: LightBulb
path: LightBulb/bin/publish/
if-no-files-found: error

- name: Upload artifacts (installer)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # 3.1.3
with:
name: LightBulb-Installer
path: Installer/bin/LightBulb-Installer.exe
if-no-files-found: error

deploy:
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }}
Expand Down Expand Up @@ -110,11 +114,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: >
gh release create "${{ github.ref_name }}"
"LightBulb.zip"
"LightBulb-Installer.exe"
--repo "${{ github.event.repository.full_name }}"
--title "${{ github.ref_name }}"
gh release create ${{ github.ref_name }}
LightBulb.zip
LightBulb-Installer.exe
--repo ${{ github.event.repository.full_name }}
--title ${{ github.ref_name }}
--notes "[Changelog](${{ github.event.repository.html_url }}/blob/${{ github.ref_name }}/Changelog.md)"
--verify-tag
Expand Down

0 comments on commit b19a5f5

Please sign in to comment.