diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e5b9c9c..13298bb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,17 +5,20 @@ on: - "v*" jobs: - # Publish sysglance to AUR - aur_release: + aur-publish: runs-on: ubuntu-latest - name: Create AUR release - #needs: github_release # The -bin version downloads and shasums it steps: - - name: Build | Publish AUR package - uses: ATiltedTree/create-aur-release@v1 + - uses: actions/checkout@v2 + + - name: Publish AUR package + uses: KSXGitHub/github-actions-deploy-aur@master with: - package_name: sysglance + pkgname: sysglance + pkgbuild: ./pkgbuild/PKGBUILD commit_username: ${{ secrets.AUR_USERNAME }} commit_email: ${{ secrets.AUR_EMAIL }} ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} - commit_message: Update AUR package + #commit_message: Update AUR package + ssh_keyscan_types: rsa,dsa,ecdsa,ed25519 + commit_message: ${{ needs.create_release.outputs.release_tag }} + force_push: 'true' \ No newline at end of file diff --git a/template/PKGBUILD b/template/PKGBUILD new file mode 100644 index 0000000..802b005 --- /dev/null +++ b/template/PKGBUILD @@ -0,0 +1,13 @@ +# Maintainer: Cerebrux +pkgdesc="Utility for collecting information about the hardware and the operating system by generating a simple report." +pkgrel=1 +arch=('any') +url="https://github.com/Utappia/sysglance" +license=('GPL3') +depends=('pciutils' 'usbutils' 'util-linux' 'curl') + +package() { + cd "$srcdir/sysglance-$pkgver" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm755 sysglance.sh "$pkgdir/usr/bin/sysglance" +}