From ed170b91a96b2683c6aa7536fb489706ead4c0cc Mon Sep 17 00:00:00 2001 From: Alexandre Tolstenko Date: Fri, 2 Dec 2022 12:21:54 -0500 Subject: [PATCH] feat: nightly builds --- .github/workflows/release.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2b15512..8332354 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,6 +2,8 @@ name: Release on: push: + tags: + - '*' branches: - master - main @@ -35,6 +37,10 @@ jobs: - name: build run: cmake --build build -j4 --config Release + - name: Get current date + id: date + run: echo "::set-output name=date::$(date +'%Y-%m-%d')" + - name: zip uses: thedoctor0/zip-release@main with: @@ -42,17 +48,8 @@ jobs: filename: ${{ matrix.os }}.zip directory: build/out/ - - name: ls - run: ls - - - name: ls - run: ls build - - - name: ls - run: ls build/out - - uses: ncipollo/release-action@v1 with: allowUpdates: true artifacts: build/out/${{ matrix.os }}.zip - tag: latest + tag: nightly-${{ steps.date.outputs.date }}