add gh-pages, and less compiler #4
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: Deploy Website | |
on: | |
push: | |
branches: | |
- main # or the branch you want to deploy from | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' # specify your Node.js version here | |
- name: Install dependencies | |
run: npm install | |
- name: Install Less | |
run: npm install -g less | |
- name: Compile Less to CSS | |
run: lessc src/less/main.less src/css/main.css | |
- name: Deploy | |
run: npm run deploy | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |