Merge pull request #54 from chuva-io/#53 #19
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 to Production with Less. | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: production | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.9.0' | |
- name: Install dependencies | |
run: yarn --frozen-lockfile | |
- name: Create build for Less | |
run: yarn build | |
- name: Deploy site using Less | |
env: | |
LESS_TOKEN: ${{ secrets.LESS_TOKEN }} | |
LESS_APPLICATION_NAME: ${{ vars.LESS_APPLICATION_NAME }} | |
run: yarn deploy |