Skip to content

CI/CD trigger test

CI/CD trigger test #10

Workflow file for this run

---
deploy:

Check failure on line 2 in .github/workflows/review-app.yml

View workflow run for this annotation

GitHub Actions / Review app on pull request

Invalid workflow file

The workflow is not valid. .github/workflows/review-app.yml (Line: 2, Col: 1): Unexpected value 'deploy'
runs-on: ubuntu-latest
steps:
- name: Set up app
run: clever deploy
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
CLEVER_SECRET: ${{ secrets.CLEVER_SECRET }}
CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }}
ORG_ID: ${{ secrets.ORG_ID }}
jobs:
set-env:
runs-on: ubuntu-latest
steps:
- name: prebuild
run: clever env set CC_PRE_BUILD_HOOK "./clevercloud-deploy-script.sh"
- name: index
run: clever env set CC_WEBROOT "/public"
- name: hugo-env
run: clever env set HUGO_ENV "production"
- name: hugo-version
run: clever env set HUGO_VERSION "${{secrets.HUGO_VERSION}}
- name: php
run: clever env set CC_PHP_VERSION "7"
- name: hugo-env
run: clever env set HUGO_VERSION "${{secrets.HUGO_VERSION}}
- name: cgi
run: clever env set CC_CGI_IMPLEMENTATION "proxy_fcgi"
- name: composer
run: clever env set CC_COMPOSER_VERSION "2"
- name: domain
run: clever domain add ${{ env.BRANCH_NAME }}.cleverapps.io
setup:
runs-on: ubuntu-latest
steps:
- id: install
run: npm install -g clever-tools
- id: connect
run: clever login --token ${{ env.CLEVER_TOKEN }} --secret ${{ env.CLEVER_SECRET }}
- id: create
run: clever create --type static-apache ${{ env.BRANCH_NAME }} --alias ${{ env.BRANCH_NAME }} --region par --org ${{secrets.ORGA_ID}}
- id: link
run: clever link --org ${{secrets.ORGA_ID}} ${{ env.BRANCH_NAME }} --alias ${{ env.BRANCH_NAME }} && clever scale --flavor XS
name: Review app on pull request
'on':
pull_request:
branches: main