Deploy QIT Docs #13
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 QIT Docs | |
on: | |
push: | |
branches: | |
- 24-03/doc-suggestions | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest # or another environment of your choice | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4' # specify your PHP version here | |
- name: Zip Project Contents | |
run: | | |
zip -r ${{ github.workspace }}/docs.zip . -x "*.git*" | |
- name: List files in the workspace. | |
run: ls -l ${{ github.workspace }} | |
- name: Deploy QIT Docs | |
run: | | |
php .github/workflows/scripts/deploy.php | |
env: | |
DEPLOY_ENDPOINT: ${{ secrets.DEPLOY_ENDPOINT }} | |
DOCS_SECRET: ${{ secrets.DOCS_SECRET }} | |
FILE: ${{ github.workspace }}/docs.zip |