From 0e54998d584af3016f07034a851016bb6dde7128 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Wed, 25 Sep 2024 11:09:13 +0200 Subject: [PATCH] Add nightly deploy workflow Signed-off-by: Pol Henarejos --- .github/workflows/nightly.yml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/nightly.yml diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 0000000..19fbc81 --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,37 @@ +name: "Nightly deploy" + +on: + push: + branches: [ "main", "development" ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ "main", "development" ] + schedule: + - cron: '0 2 * * *' + workflow_dispatch: + +jobs: + nightly: + name: Deploy nightly + strategy: + fail-fast: false + matrix: + refs: [main, development] + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + ref: ${{ matrix.refs }} + submodules: 'recursive' + - name : Build + run: | + ./workflows/autobuild.sh + ./build_pico_fido.sh + - name: Update nightly release + uses: pyTooling/Actions/releaser@main + with: + tag: nightly-${{ matrix.refs }} + rm: true + token: ${{ secrets.GITHUB_TOKEN }} + files: release/*.*