43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: Server Monitor Manager installer release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
tags:
|
|
- 'smm-installer-v*'
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
package:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Validate installer
|
|
run: bash -n ochenstarik-server-monitor-manager.sh
|
|
|
|
- name: Create installer checksum
|
|
shell: bash
|
|
run: |
|
|
set -Eeuo pipefail
|
|
install -d dist
|
|
install -m 0755 ochenstarik-server-monitor-manager.sh dist/ochenstarik-server-monitor-manager.sh
|
|
cd dist
|
|
sha256sum ochenstarik-server-monitor-manager.sh > SHA256SUMS
|
|
sha256sum --check SHA256SUMS
|
|
|
|
- name: Upload installer artifact
|
|
uses: actions/upload-artifact@v6
|
|
with:
|
|
name: ochenstarik-server-monitor-manager-installer
|
|
path: dist/*
|
|
|
|
- name: Attach installer to GitHub Release
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
prerelease: ${{ contains(github.ref_name, '-') }}
|
|
files: dist/*
|