barcode-utils/.forgejo/workflows/package.yml
s3lph 55a138c2a7
All checks were successful
/ build_debian (push) Successful in 11s
fix(ci): unquote webextension version
2024-11-29 01:27:34 +01:00

35 lines
1.3 KiB
YAML

---
on: push
jobs:
build_debian:
runs-on: docker
container:
image: git.kabelsalat.ch/s3lph/package-pipeline-builder:latest
steps:
- uses: https://code.forgejo.org/actions/checkout@v4
- name: Prepare package
run: |
mkdir -p \
package/debian/barcode-utils/usr/bin \
package/debian/barcode-utils/usr/share/webextensions
sed -re "s/__VERSION__/0.$(git rev-list --count HEAD)-1/g" -i package/debian/barcode-utils/DEBIAN/control
# barcode-websocket-server
cp barcode-websocket-server package/debian/barcode-utils/usr/bin/
# webextension-tabfocus
cd webextension-tabfocus
zip "../tabfocus-$(jq -r .version < manifest.json).zip" *
cd ..
cp tabfocus*zip package/debian/barcode-utils/usr/share/webextensions/
# package
find package/debian/barcode-utils -exec touch -m -d "$(git log -1 --format="%aI")" {} \;
cd package/debian/
dpkg-deb --build barcode-utils .
- uses: https://git.kabelsalat.ch/s3lph/forgejo-action-debian-package-upload@v2
with:
username: ${{ secrets.API_USERNAME }}
password: ${{ secrets.API_PASSWORD }}
deb: "package/debian/*.deb"