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