introduced cleanup in pipeline #28
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
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- dev | |
jobs: | |
pre_build: | |
name: Prepare index pages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: 'dev' | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
cache-dependency-path: './_tools/package-lock.json' | |
- name: Change working directory to _tools | |
run: cd _tools | |
- name: Install dependencies | |
run: npm install | |
working-directory: './_tools' | |
- name: Run Gallery | |
run: ./clean-offical.sh && ./run-gallery.sh | |
working-directory: './_tools' | |
- name: git setup | |
run: | | |
git config user.email "[email protected]" | |
git config user.name "Github Actions" | |
- name: git commit to dev | |
run: | | |
git add . | |
git commit -a -m "Updates by gallery script" | |
git push |