Fix .deb build: only build on tags, add PKGBUILD to release uploads
This commit is contained in:
@@ -39,10 +39,11 @@ jobs:
|
|||||||
run: dotnet publish ADBulkTool.csproj -c Release -r ${{ matrix.rid }} --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -o publish/${{ matrix.rid }}
|
run: dotnet publish ADBulkTool.csproj -c Release -r ${{ matrix.rid }} --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -o publish/${{ matrix.rid }}
|
||||||
|
|
||||||
- name: Build .deb (linux-x64 only)
|
- name: Build .deb (linux-x64 only)
|
||||||
if: matrix.rid == 'linux-x64'
|
if: matrix.rid == 'linux-x64' && startsWith(github.ref, 'refs/tags/v')
|
||||||
run: |
|
run: |
|
||||||
|
VERSION="${GITHUB_REF_NAME#v}"
|
||||||
chmod +x packaging/build-deb.sh
|
chmod +x packaging/build-deb.sh
|
||||||
packaging/build-deb.sh publish/linux-x64/ADBulkTool "${GITHUB_REF_NAME:-1.0.0}"
|
packaging/build-deb.sh publish/linux-x64/ADBulkTool "$VERSION"
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
@@ -97,3 +98,6 @@ jobs:
|
|||||||
upload "ADBulkTool-osx-x64/ADBulkTool" "ADBulkTool-macos-x64"
|
upload "ADBulkTool-osx-x64/ADBulkTool" "ADBulkTool-macos-x64"
|
||||||
upload "ADBulkTool-osx-arm64/ADBulkTool" "ADBulkTool-macos-arm64"
|
upload "ADBulkTool-osx-arm64/ADBulkTool" "ADBulkTool-macos-arm64"
|
||||||
upload "adbulktool_${VERS}_amd64.deb" "adbulktool_${VERS}_amd64.deb"
|
upload "adbulktool_${VERS}_amd64.deb" "adbulktool_${VERS}_amd64.deb"
|
||||||
|
cp packaging/arch/PKGBUILD packaging/arch/.INSTALL .
|
||||||
|
upload "PKGBUILD" "PKGBUILD"
|
||||||
|
upload ".INSTALL" ".INSTALL"
|
||||||
|
|||||||
Vendored
+9
@@ -0,0 +1,9 @@
|
|||||||
|
Package: adbulktool
|
||||||
|
Version: 1.0.0
|
||||||
|
Section: utils
|
||||||
|
Priority: optional
|
||||||
|
Architecture: amd64
|
||||||
|
Maintainer: mikisoq
|
||||||
|
Description: Bulk Active Directory tool
|
||||||
|
Cross-platform GUI app for bulk AD operations from a CSV file.
|
||||||
|
Supports user enable/disable, group add/remove, password reset.
|
||||||
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Reference in New Issue
Block a user