Update gallery.yml #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Gallery | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
permissions: | |
id-token: write | |
actions: write | |
pages: write | |
jobs: | |
test: | |
name: Publish Gallery to Github Pages | |
if: ${{ github.repository != 'gautamkrishnar/github-pages-gallery' && github.event.head_commit.message != '' && github.event.head_commit.message != 'Initial commit' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Build Gallery 🔧 | |
run: docker run -v "$(pwd):/work" ghcr.io/thumbsup/thumbsup /bin/sh -c "cd /work/ && thumbsup --config config.json" | |
- name: Package and upload artifact 📦 | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: 'build_output' | |
name: gh-pages | |
- name: Deploy to Github Pages 🚀 | |
uses: actions/deploy-pages@v4 | |
with: | |
artifact_name: gh-pages | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Delete artifact 🗑️ | |
uses: geekyeggo/delete-artifact@v4 | |
with: | |
name: gh-pages |