New device - Minoston MP22W Oudoor Plug #284
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: Deploy images to GitHub Pages | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
paths: | |
- .github/workflows/gh-pages-images.yml | |
- images/* | |
concurrency: gh-pages-deployment | |
jobs: | |
deploy: | |
name: Deploy images to GitHub Pages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Generate image thumbnails | |
uses: subic/ghaction-thumbnails@master | |
with: | |
source: images | |
output: site/images/thumbs | |
subfolder: false | |
sizes: 300x300 | |
fit: outside | |
- name: Copy images to site directory | |
run: | | |
cp images/* site/images/ | |
- name: Deploy images to GitHub Pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: site/images/ | |
target-folder: images/ | |
force: false |