Skip to content

chore: Fix sorting issue in PhotoGridByYear component #91

chore: Fix sorting issue in PhotoGridByYear component

chore: Fix sorting issue in PhotoGridByYear component #91

Workflow file for this run

name: Publish GitHub Pages
on:
push:
branches:
- 'main'
jobs:
build:
name: Create artifacts from master
runs-on: ubuntu-latest
strategy:
matrix:
include:
- public_url: gallery # wf
data_folder: data
folder: gallery
- public_url: gallery/nac # nac
data_folder: dataNAC
folder: nac
- public_url: gallery/nerc # nerc
data_folder: dataNERC
folder: nerc
- public_url: gallery/lac # lac
data_folder: dataLAC
folder: lac
- public_url: gallery/ae # ae
data_folder: dataAE
folder: ae
- public_url: gallery/aw # aw
data_folder: dataAW
folder: aw
- public_url: gallery/ap # ap
data_folder: dataAP
folder: ap
- public_url: gallery/eu # eu
data_folder: dataEU
folder: eu
- public_url: gallery/acpc # acpc
data_folder: dataACPC
folder: acpc
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16'
cache: 'npm'
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: Build
run: PUBLIC_URL=${{ matrix.public_url }} VITE_DATA_FOLDER=${{ matrix.data_folder }} ./build.sh
- name: Upload
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.folder }}
path: ${{ matrix.public_url }}.zip
repack-gh-pages:
name: Repack GitHub Pages
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: .
- name: Unzip all zip from multiple zips
run: |
mkdir build-all
cp build-*/*.zip build-all
cd build-all
ls
unzip '*.zip'
mv gallery/* .
rm -rf gallery
rm *.zip
ls
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: build-all
deploy:
name: Deploy to GitHub Pages
needs: repack-gh-pages
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions: write-all
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4