From 4bd9af5919eb6315f89a710903f77e7541b4f503 Mon Sep 17 00:00:00 2001 From: Finn Date: Sun, 4 Aug 2024 23:15:04 -0700 Subject: [PATCH] Upload apcupsd_exporter after build --- .../workflows/build-apcupsd-exporter.yaml | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.forgejo/workflows/build-apcupsd-exporter.yaml b/.forgejo/workflows/build-apcupsd-exporter.yaml index 724e7b3..257f505 100644 --- a/.forgejo/workflows/build-apcupsd-exporter.yaml +++ b/.forgejo/workflows/build-apcupsd-exporter.yaml @@ -12,11 +12,18 @@ jobs: container: image: ghcr.io/catthehacker/ubuntu:runner-latest steps: - - uses: actions/setup-go - - name: Build apcupsd_exporter - run: | - set -exuo pipefail - git clone https://github.com/mdlayher/apcupsd_exporter.git - cd apcupsd_exporter - go build . - + - uses: actions/setup-go + - name: Build apcupsd_exporter + run: | + set -exuo pipefail + git clone https://github.com/mdlayher/apcupsd_exporter.git + cd apcupsd_exporter + go build . + - name: upload + uses: https://codeberg.org/EntanglementGarden/actions/generic-upload@v0.1 + with: + upload-username: ${{ secrets.DEPLOY_USER }} # must be a user that can upload to the registry + upload-token: ${{ secrets.DEPLOY_TOKEN }} + files: apcupsd_exporter/apcupsd_exporter + package: infra-apcupsd_exporter +