Skip to content

Revert "Revert "Add deco-deploy github action"" #12

Revert "Revert "Add deco-deploy github action""

Revert "Revert "Add deco-deploy github action"" #12

Workflow file for this run

name: Deploy
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
set-vars:
runs-on: ubuntu-latest
outputs:
site-matrix: ${{ steps.set-vars.outputs.site-matrix }}
steps:
- name: Set site matrix
id: set-vars
shell: bash
run: |
echo "site-matrix=[${{ vars.SITES || github.event.repository.name }}]" >> $GITHUB_OUTPUT
deploy:
needs: set-vars
strategy:
matrix:
site: ${{ fromJson(${{ needs.set-vars.outputs.site-matrix }})) }}

Check failure on line 23 in .github/workflows/deco-deploy.yaml

View workflow run for this annotation

GitHub Actions / Deploy

Invalid workflow file

The workflow is not valid. .github/workflows/deco-deploy.yaml (Line: 23, Col: 15): Unexpected symbol: '${{'. Located at position 10 within expression: fromJson(${{ needs.set-vars.outputs.site-matrix .github/workflows/deco-deploy.yaml (Line: 23, Col: 15): Unexpected value '${{ fromJson(${{ needs.set-vars.outputs.site-matrix }})) }}'
name: Deploy
runs-on: ubuntu-latest
permissions:
id-token: write # Needed for auth with Deno Deploy
contents: read # Needed to clone the repository
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Deco Deploy
uses: deco-cx/deploy@v0
with:
site: ${{ matrix.site }}