Skip to content

Commit

Permalink
added new deploy steps
Browse files Browse the repository at this point in the history
  • Loading branch information
GilbN committed Nov 1, 2021
1 parent 82a6c8a commit c091d96
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/minify-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,9 @@ jobs:
fi
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
- name: create themes.json
- name: Run themes.py
run: |
python themes.py
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "themes.json" || echo "Ignore commit failure, proceed"
git push || echo "Ignore push failure, proceed"
- name: Minify CSS
if: ${{ github.ref == 'refs/heads/master' }}
run: |
Expand Down Expand Up @@ -63,3 +58,10 @@ jobs:
publish_dir: ./
publish_branch: live
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 }}

0 comments on commit c091d96

Please sign in to comment.