Run test automatically on push to main #2
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: Test Buildarr installer build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
docker: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Install Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Update APT package metadata | |
run: sudo apt-get update | |
- name: Install NSIS | |
run: sudo apt-get install -y nsis | |
- name: Install pynsist | |
run: python -m pip install pynsist | |
- name: Check out the repository | |
uses: actions/checkout@v4 | |
- name: Build Buildarr installer | |
run: pynsist installer.cfg | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: buildarr-installer | |
path: build/nsis | |
retention-days: 5 |