name: "Update gallery.sh demo page" on: workflow_dispatch: jobs: build-and-deploy: runs-on: ubuntu-latest steps: - name: Dependencies 🔧 run: sudo apt-get install imagemagick jhead - name: Checkout 🛎️ uses: actions/checkout@v2 - name: Build 🖼️ run: | ls -lah mkdir -p build/ cp images/demo/* build/ cd build/ ls -lah bash ../gallery.sh -t "Demo Gallery" -d "thumbs" - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@4.0.0 with: branch: gh-pages # The branch the action should deploy to. folder: build # The folder the action should deploy.