diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dc1d46a..5741be5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -74,7 +74,7 @@ jobs: needs: [ calendar ] runs-on: ubuntu-latest environment: staging - if: github.ref == 'refs/heads/staging' && github.event_name == 'push' + if: (github.ref == 'refs/heads/staging' && github.event_name == 'push') || github.event_name == 'schedule' steps: - name: Download pages uses: actions/download-artifact@v4 @@ -90,7 +90,7 @@ jobs: filename: ../release-staging-${{ env.timestamp }}.zip directory: public - name: Create Release - uses: ncipollo/release-action@v1.15.0 + uses: ncipollo/release-action@v1.16.0 with: tag: staging-${{ env.timestamp }} name: Website staging version ${{ env.timestamp }} @@ -102,7 +102,7 @@ jobs: needs: [ calendar ] runs-on: ubuntu-latest environment: production - if: github.ref == 'refs/heads/production' && github.event_name == 'push' + if: (github.ref == 'refs/heads/production' && github.event_name == 'push') || github.event_name == 'schedule' steps: - name: Download pages uses: actions/download-artifact@v4 @@ -118,7 +118,7 @@ jobs: filename: ../release-production-${{ env.timestamp }}.zip directory: public - name: Create Release - uses: ncipollo/release-action@v1.15.0 + uses: ncipollo/release-action@v1.16.0 with: makeLatest: true tag: production-${{ env.timestamp }} @@ -126,3 +126,4 @@ jobs: body: Website production version ${{ env.timestamp }} artifacts: release-production-${{ env.timestamp }}.zip token: ${{ secrets.GITHUB_TOKEN }} + \ No newline at end of file