Update release.yml

This commit is contained in:
XenGi 2023-06-13 23:23:43 +02:00 committed by GitHub
parent c0517287e1
commit 1a055b9b85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,7 +58,7 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: pages name: pages
path: "." path: public/
- name: Generate calendars - name: Generate calendars
run: python tools/merge_cals.py run: python tools/merge_cals.py
- name: Copy calendar to output dir - name: Copy calendar to output dir
@ -81,19 +81,23 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: enhanced_pages name: enhanced_pages
path: "." path: public
- name: Generate timestamp - name: Generate timestamp
run: echo "timestamp=$(date --iso-8601=seconds)" >> $GITHUB_ENV run: echo "timestamp=$(date --iso-8601=seconds)" >> $GITHUB_ENV
- name: Create Release - name: Create Release Archive
uses: actions/create-release@v1 uses: thedoctor0/zip-release@0.7.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with: with:
tag_name: staging-${{ env.timestamp }} type: zip
release_name: Staging release ${{ env.timestamp }} filename: release-staging-${{ env.timestamp }}.zip
body: New Website staging version ${{ env.timestamp }} directory: public
draft: false - name: Create Release
prerelease: false uses: ncipollo/release-action@v1.12.0
with:
tag: staging-${{ env.timestamp }}
name: Website staging version ${{ env.timestamp }}
body: Website staging version ${{ env.timestamp }}
artifacts: release-staging-${{ env.timestamp }}.zip
token: ${{ secrets.GITHUB_TOKEN }}
release: release:
needs: [ calendar ] needs: [ calendar ]
@ -105,16 +109,21 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: enhanced_pages name: enhanced_pages
path: "." path: public
- name: Generate timestamp - name: Generate timestamp
run: echo "timestamp=$(date --iso-8601=seconds)" >> $GITHUB_ENV run: echo "timestamp=$(date --iso-8601=seconds)" >> $GITHUB_ENV
- name: Create Release - name: Create Release Archive
uses: actions/create-release@v1 uses: thedoctor0/zip-release@0.7.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with: with:
tag_name: production-${{ env.timestamp }} type: zip
release_name: Production release ${{ env.timestamp }} filename: release-production-${{ env.timestamp }}.zip
body: New Website production version ${{ env.timestamp }} directory: public
draft: false - name: Create Release
prerelease: false uses: ncipollo/release-action@v1.12.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 }}