From 34ffb5b28efcc0c8c2b62256990bca14e5313c68 Mon Sep 17 00:00:00 2001 From: Dusan Figala Date: Tue, 1 Aug 2023 14:16:18 +0200 Subject: [PATCH] Add nightly build workflow Add cpack options --- .github/workflows/nightly.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index a5906565f..cbd03a6ef 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -5,7 +5,7 @@ on: # Run at 20:00 UTC every day (on default branch) schedule: - - cron: "0 20 * * *" + - cron: '0 20 * * *' jobs: test: @@ -15,10 +15,26 @@ jobs: nightly_test: true secrets: inherit + deploy: + needs: [test] + uses: ecmwf-actions/reusable-workflows/.github/workflows/create-package.yml@v2 + with: + skip_checks: true + cpack_options_rpm: -D CPACK_PACKAGE_FILE_NAME=eccodes-nightly-Linux-x86_64 + cpack_options_deb: -D CPACK_PACKAGE_VERSION=nightly + secrets: + url_debian_11: ${{ secrets.NEXUS_TEST_REPO_NIGHTLY_URL_DEBIAN_11 }} + token_debian_11: ${{ secrets.NEXUS_TEST_REPO_UPLOAD_TOKEN }} + url_centos_7: ${{ secrets.NEXUS_TEST_REPO_NIGHTLY_URL_CENTOS_7 }} + token_centos_7: ${{ secrets.NEXUS_TEST_REPO_UPLOAD_TOKEN }} + url_rocky_8: ${{ secrets.NEXUS_TEST_REPO_NIGHTLY_URL_ROCKY_8 }} + token_rocky_8: ${{ secrets.NEXUS_TEST_REPO_UPLOAD_TOKEN }} + notify: runs-on: ubuntu-latest needs: - test + - deploy if: always() steps: - name: Trigger Teams notification