Skip to content

Merge pull request #36 from woocommerce/24-08/add/validation-test-basics #54

Merge pull request #36 from woocommerce/24-08/add/validation-test-basics

Merge pull request #36 from woocommerce/24-08/add/validation-test-basics #54

Workflow file for this run

name: Deploy QIT Docs
on:
workflow_dispatch: # Allows manual triggering of the workflow.
push:
branches:
- trunk
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
tools: none
php-version: '8.2'
- name: Npm Install
run: npm install
- name: Build
run: npm run build
- name: Zip Build Contents
working-directory: ./build
run: |
zip -r ${{ github.workspace }}/docs.zip .
- name: List files in the workspace.
run: ls -l ${{ github.workspace }}
- name: Deploy QIT Docs
run: |
php .github/workflows/scripts/deploy.php
env:
DOCS_SECRET: ${{ secrets.DOCS_SECRET }}
FILE: ${{ github.workspace }}/docs.zip