--- 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 with: fetch-depth: 0 - 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"