diff --git a/.github/workflows/minify-and-deploy.yml b/.github/workflows/minify-and-deploy.yml index f0cc9cdd..92c43208 100644 --- a/.github/workflows/minify-and-deploy.yml +++ b/.github/workflows/minify-and-deploy.yml @@ -21,6 +21,16 @@ jobs: echo "Game over man!" exit 1 fi + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + - name: create themes.json + run: | + python themes.py + git config user.name github-actions + git config user.email github-actions@github.com + git add . + git commit -m "themes.json" + git push - name: Minify CSS run: | sudo npm install -g minify @@ -44,10 +54,6 @@ jobs: minify_file $fname fi done - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - - name: create themes.json - run: python themes.py - name: Deploy uses: peaceiris/actions-gh-pages@v3 if: ${{ github.ref == 'refs/heads/master' }}