25 lines
963 B
YAML
25 lines
963 B
YAML
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
shellinabox_version:
|
|
description: "Tag or Branch to use from shellinabox"
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
package:
|
|
runs-on: docker
|
|
container:
|
|
image: docker.io/debian:trixie-slim
|
|
steps:
|
|
- name: install needed packages
|
|
run: apt update && apt install -y git libssl-dev libpam0g-dev zlib1g-dev dh-autoreconf dpkg-dev debhelper
|
|
- name: clone repo
|
|
run: git clone -b "v${{ inputs.shellinabox_version }}" --single-branch --depth 1 https://git.fucktheforce.de/mirror/shellinabox.git workdir
|
|
- name: build
|
|
run: dpkg-buildpackage -b
|
|
working-directory: workdir
|
|
- name: upload deb
|
|
run: |
|
|
curl -H "Authorization: token ${{ secrets.LOOKSHE_PACKAGES_TOKEN }}" --upload-file "shellinabox_${{ inputs.shellinabox_version }}_amd64.deb" "https://git.fucktheforce.de/api/packages/lookshe/debian/pool/trixie/main/upload"
|
|
|