summaryrefslogtreecommitdiff
path: root/.github/workflows/main.yml
blob: 1242cec241d2a968a95dca7f2fe5a64eac1674a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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: Configuration 🖊️
        run: |
          mkdir -p build/
          cp images/demo/* build/
          cd build/
      - name: Build 🖼️
        run: bash ../gallery.sh -t "Demo Gallery"
      - 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.