diff options
author | Nils K <git@nkn-it.de> | 2021-11-25 21:54:37 +0100 |
---|---|---|
committer | Nils K <git@nkn-it.de> | 2021-11-25 21:54:37 +0100 |
commit | 0baf1d03e9ff568652e62ecb881de3f7aba2f759 (patch) | |
tree | 942e9e28b448a5e9b9b02f51c40003ab565c6797 /.github/workflows/demo_page.yml | |
parent | e73d4d2d565480c3488c8b80a506c2cdd9be975e (diff) |
new github action test
Diffstat (limited to '.github/workflows/demo_page.yml')
-rw-r--r-- | .github/workflows/demo_page.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/demo_page.yml b/.github/workflows/demo_page.yml new file mode 100644 index 0000000..30cdc23 --- /dev/null +++ b/.github/workflows/demo_page.yml @@ -0,0 +1,25 @@ +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.
\ No newline at end of file |