From 251a5957838c56f46fe627c0fc499ec2822e76eb Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Wed, 3 Jan 2024 18:29:21 +0000 Subject: [PATCH] Adding forgejo CI --- .forgejo/workflows/packaging_test.yml | 37 +++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .forgejo/workflows/packaging_test.yml diff --git a/.forgejo/workflows/packaging_test.yml b/.forgejo/workflows/packaging_test.yml new file mode 100644 index 0000000..af0e5a6 --- /dev/null +++ b/.forgejo/workflows/packaging_test.yml @@ -0,0 +1,37 @@ +name: Packaging Test +on: + workflow_dispatch: + push: + branches: + - $default-branch + - development + - master + # Run tests for any PRs + pull_request: +env: + SOURCE_DIR: ./ + ARTIFACTS_DIR: debian/build/release/ +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: https://github.com/actions/checkout@v4 + env: + DEBIAN_FRONTEND: "noninteractive" + - name: Remove github artefacts + run: | + rm -rf .github* .forgejo* + - name: Adjust distibution in changelog file + run: | + sed -i '0,/restricted/s//stable/' debian/changelog + - name: Install skopeo for action-debian-package + run: | + apt update + apt -y install skopeo + - name: Build Debian package + uses: https://github.com/dawidd6/action-debian-package@v1.5.0 + with: + artifacts_directory: debian/build/release/ + - name: Debug + run: | + ls -la