26 lines
952 B
YAML
26 lines
952 B
YAML
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
pve_fake_subscription_version:
|
|
description: "Tag or Branch to use from pve-fake-subscription"
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
package:
|
|
runs-on: docker
|
|
container:
|
|
image: docker.io/alpine:3.21.2
|
|
steps:
|
|
- name: install needed packages
|
|
run: apk update && apk add --no-cache git nfpm curl
|
|
- name: clone repo
|
|
run: git clone -b "${{ inputs.pve_fake_subscription_version }}" --single-branch --depth 1 https://git.fucktheforce.de/mirror/pve-fake-subscription.git workdir
|
|
- name: build
|
|
run: nfpm pkg --packager deb --target out.deb
|
|
working-directory: workdir
|
|
- name: upload deb
|
|
run: |
|
|
curl -H "Authorization: token ${{ secrets.LOOKSHE_PACKAGES_TOKEN }}" --upload-file "out.deb" "https://git.fucktheforce.de/api/packages/lookshe/debian/pool/bookworm/main/upload"
|
|
working-directory: workdir
|
|
|