Skip to content

Exclude backup and hidden files in unifi-on-boot #41

Exclude backup and hidden files in unifi-on-boot

Exclude backup and hidden files in unifi-on-boot #41

Workflow file for this run

name: Build and Release
on:
push:
branches: [main]
tags: ['v*']
pull_request:
branches: [main]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build .deb package
run: |
chmod +x build.sh
./build.sh
- name: Upload .deb artifact
uses: actions/upload-artifact@v4
with:
name: unifi-on-boot-deb
path: dist/*.deb
release:
needs: build
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build .deb package
run: |
chmod +x build.sh
./build.sh
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: dist/*.deb
generate_release_notes: true
fail_on_unmatched_files: true