Update lighthouse.yml #102
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 | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
# Step 1: Check out the repository | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# Step 2: Set up Node.js environment | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.17.0' | |
# Step 3: Install dependencies | |
- name: Install Dependencies | |
run: yarn install --frozen-lockfile | |
# Step 4: Configure zcli with environment variables | |
- name: Configure ZCLI | |
run: | | |
echo "default:\n email: ${ZENDESK_EMAIL}\n token: ${ZENDESK_API_TOKEN}\n subdomain: ${ZENDESK_SUBDOMAIN}" > ~/.zcli/config.yml | |
env: | |
ZENDESK_EMAIL: ${{ secrets.ZENDESK_EMAIL }} | |
ZENDESK_API_TOKEN: ${{ secrets.ZENDESK_API_TOKEN }} | |
ZENDESK_SUBDOMAIN: ${{ secrets.ZENDESK_SUBDOMAIN }} | |
# Step 5: Build the project | |
- name: Build | |
run: yarn build | |
# Step 6: Upload and Publish Theme | |
- name: Deploy Theme | |
run: node ./bin/theme-upload.js |