Skip to content

fix: rm old symlink before cp to prevent cp from following it #24

fix: rm old symlink before cp to prevent cp from following it

fix: rm old symlink before cp to prevent cp from following it #24

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