diff --git a/.github/workflows/main.yml b/.github/workflows/build.yml similarity index 62% rename from .github/workflows/main.yml rename to .github/workflows/build.yml index 0f17851..4cebbb6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/build.yml @@ -1,10 +1,10 @@ -name: 'Main' +name: 'Build' on: push: - branches: [ "main" ] + branches: [ "master" ] pull_request: - branches: [ "main" ] + branches: [ "master" ] # This allows a subsequently queued workflow run to interrupt previous runs concurrency: @@ -20,7 +20,11 @@ jobs: - name: Build Application run: "./build.cmd" - - uses: ncipollo/release-action@v1 + - uses: actions/upload-artifact@v3 with: - artifacts: "TwitchNotify.exe" - token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + name: application + if-no-files-found: error + path: | + TwitchNotify.exe + TwitchNotify.ini + diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..52a9c42 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,38 @@ +name: 'Release' + +on: + push: + tags: + - '*.*.*' + +jobs: + build: + runs-on: windows-2022 + steps: + - uses: actions/checkout@v3 + + - name: Build Application + run: "./build.cmd" + + - uses: actions/upload-artifact@v3 + with: + name: application + if-no-files-found: error + path: | + TwitchNotify.exe + TwitchNotify.ini + + release: + runs-on: ubuntu-latest + needs: build + steps: + - uses: actions/download-artifact@v3 + with: + name: application + + - uses: ncipollo/release-action@v1 + with: + artifacts: "TwitchNotify.exe,TwitchNotify.ini" + token: ${{ secrets.GITHUB_TOKEN }} + body: "You need to Download both files in the same Folder. The configuration for the ini file is described in the [Readme.md](Readme.md)" + \ No newline at end of file diff --git a/README.md b/README.md index e87c7f9..39ea181 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Twitch Notify +[![Build](https://github.com/pwnyprod/TwitchNotify/actions/workflows/build.yml/badge.svg)](https://github.com/pwnyprod/TwitchNotify/actions/workflows/build.yml) + Simple utility that sits in system tray, monitors Twitch users and notifies with Windows 10 toast notifications when they go live.