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

better release.yml which enables the creation of archives on schedule and not just on commits or pull requests #40

Merged
merged 3 commits into from
Feb 26, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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
Expand All @@ -118,11 +118,12 @@ 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 }}
name: Website production version ${{ env.timestamp }}
body: Website production version ${{ env.timestamp }}
artifacts: release-production-${{ env.timestamp }}.zip
token: ${{ secrets.GITHUB_TOKEN }}