fix ca deploy #9
Workflow file for this run
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 CA | |
on: | |
push: | |
paths: | |
- "sourcecode/apis/contentauthor/**" | |
- ".github/workflows/ca-deploy-test.yaml" | |
branches: | |
- hubbub | |
workflow_dispatch: | |
defaults: | |
run: | |
working-directory: sourcecode/apis/contentauthor | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
tools: composer:v2 | |
coverage: none | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '16' | |
- name: Install Vapor CLI | |
working-directory: sourcecode/apis/contentauthor/tools/vapor-cli | |
run: composer install --prefer-dist | |
- name: Add Vapor to path | |
run: echo "$PWD/tools/vapor-cli/vendor/bin" >> "$GITHUB_PATH" | |
- name: Install Project Dependencies | |
run: composer install --no-interaction --prefer-dist --no-dev --optimize-autoloader | |
- name: Install NPM | |
run: npm ci | |
- name: Deploy to test environment | |
run: vapor deploy staging --without-waiting | |
env: | |
VAPOR_API_TOKEN: ${{ secrets.VAPOR_API_TOKEN }} |