Change CI/CD to target main branch on release build (#22) #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and upload NZBGet for Windows | |
on: | |
push: | |
branches: | |
- develop | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: [self-hosted, windows] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build | |
run: | | |
.\windows\build-nzbget-vs22.bat | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: nzbget-windows-installers | |
path: C:\nzbget\build\output\*.exe | |
retention-days: 5 |