Update to use the TailwindCSS standalone CLI #12
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: Publish to Github Pages | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Publish to GitHub Pages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# Download and run TailwindCSS | |
- name: TailwindCSS Build | |
run: | | |
curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/download/v3.2.4/tailwindcss-linux-x64 | |
chmod +x tailwindcss-linux-x64 | |
mv tailwindcss-linux-x64 /usr/local/bin/tailwindcss | |
tailwindcss -i src-styles/base.scss -o static/styles/main.css --minify | |
- name: Zola Deploy | |
uses: shalzz/zola-deploy-action@master | |
env: | |
PAGES_BRANCH: gh-pages | |
BUILD_DIR: . | |
TOKEN: ${{ secrets.TOKEN }} |