Merge branch 'staging' of github.com:cccb/www into staging

This commit is contained in:
XenGi 2023-06-13 23:55:45 +02:00
commit 32f445d640
Signed by: xengi
SSH key fingerprint: SHA256:EvLbWxFCtfmd+8Xa6RkzkhIga+wFkKCekfFacYVn63M

View file

@ -36,9 +36,9 @@ jobs:
steps: steps:
- name: Add de_DE.UTF-8 locale - name: Add de_DE.UTF-8 locale
run: | run: |
apt-get update sudo apt-get update
apt-get -y install locales sudo apt-get -y install locales
locale-gen de_DE.UTF-8 sudo locale-gen de_DE.UTF-8
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
@ -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 | sed 's/://g;s/+/_/g')" >> $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 | sed 's/://g;s/+/_/g')" >> $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 }}