]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
gh actions builder: upload built packages as artifacts 10536/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 29 Jun 2021 13:36:12 +0000 (15:36 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 19 Aug 2021 08:39:33 +0000 (10:39 +0200)
.github/workflows/builder.yml

index ce32ad0db0140ccfd8dd09a118668ac8b10ce465..b3b10075a5249467fd811dc1440c763b7b8d1ef4 100644 (file)
@@ -20,10 +20,19 @@ jobs:
           - ubuntu-bionic
           - oraclelinux-8
           - centos-8-stream
+          - debian-bullseye
     steps:
       - uses: actions/checkout@v2.3.4
         with:
-          fetch-depth: 5
+          fetch-depth: 0  # for correct version numbers
           submodules: recursive
       # this builds packages and runs our unit test (make check)
       - run: builder/build.sh -v -m ${{ matrix.product }} ${{ matrix.os }}
+      - name: Get version number
+        run: 'echo ::set-output name=version::$(readlink builder/tmp/latest)'
+        id: getversion
+      - name: Upload packages
+        uses: actions/upload-artifact@v2
+        with:
+          name: ${{ matrix.product }}-${{ matrix.os }}-${{ steps.getversion.outputs.version }}
+          path: built_pkgs/