mirror of
https://github.com/gilbN/theme.park.git
synced 2024-10-27 06:12:54 +01:00
added new deploy steps
This commit is contained in:
parent
82a6c8ad0a
commit
c091d9616c
14
.github/workflows/minify-and-deploy.yml
vendored
14
.github/workflows/minify-and-deploy.yml
vendored
@ -24,14 +24,9 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
- name: create themes.json
|
- name: Run themes.py
|
||||||
run: |
|
run: |
|
||||||
python themes.py
|
python themes.py
|
||||||
git config user.name github-actions
|
|
||||||
git config user.email github-actions@github.com
|
|
||||||
git add .
|
|
||||||
git commit -m "themes.json" || echo "Ignore commit failure, proceed"
|
|
||||||
git push || echo "Ignore push failure, proceed"
|
|
||||||
- name: Minify CSS
|
- name: Minify CSS
|
||||||
if: ${{ github.ref == 'refs/heads/master' }}
|
if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
run: |
|
run: |
|
||||||
@ -63,3 +58,10 @@ jobs:
|
|||||||
publish_dir: ./
|
publish_dir: ./
|
||||||
publish_branch: live
|
publish_branch: live
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Deploy Develop
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
if: ${{ github.ref == 'refs/heads/develop' }}
|
||||||
|
with:
|
||||||
|
publish_dir: ./
|
||||||
|
publish_branch: live_develop
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
Loading…
Reference in New Issue
Block a user