Skip to content
This repository was archived by the owner on Mar 2, 2025. It is now read-only.

Commit 25d9249

Browse files
authored
Merge pull request #40 from cccb/staging
better release.yml which enables the creation of archives on schedule and not just on commits or pull requests
2 parents 30d1b9b + 5e358ce commit 25d9249

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
needs: [ calendar ]
7575
runs-on: ubuntu-latest
7676
environment: staging
77-
if: github.ref == 'refs/heads/staging' && github.event_name == 'push'
77+
if: (github.ref == 'refs/heads/staging' && github.event_name == 'push') || github.event_name == 'schedule'
7878
steps:
7979
- name: Download pages
8080
uses: actions/download-artifact@v4
@@ -90,7 +90,7 @@ jobs:
9090
filename: ../release-staging-${{ env.timestamp }}.zip
9191
directory: public
9292
- name: Create Release
93-
uses: ncipollo/release-action@v1.15.0
93+
uses: ncipollo/release-action@v1.16.0
9494
with:
9595
tag: staging-${{ env.timestamp }}
9696
name: Website staging version ${{ env.timestamp }}
@@ -102,7 +102,7 @@ jobs:
102102
needs: [ calendar ]
103103
runs-on: ubuntu-latest
104104
environment: production
105-
if: github.ref == 'refs/heads/production' && github.event_name == 'push'
105+
if: (github.ref == 'refs/heads/production' && github.event_name == 'push') || github.event_name == 'schedule'
106106
steps:
107107
- name: Download pages
108108
uses: actions/download-artifact@v4
@@ -118,11 +118,12 @@ jobs:
118118
filename: ../release-production-${{ env.timestamp }}.zip
119119
directory: public
120120
- name: Create Release
121-
uses: ncipollo/release-action@v1.15.0
121+
uses: ncipollo/release-action@v1.16.0
122122
with:
123123
makeLatest: true
124124
tag: production-${{ env.timestamp }}
125125
name: Website production version ${{ env.timestamp }}
126126
body: Website production version ${{ env.timestamp }}
127127
artifacts: release-production-${{ env.timestamp }}.zip
128128
token: ${{ secrets.GITHUB_TOKEN }}
129+

0 commit comments

Comments
 (0)