Skip to content

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

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

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

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={site: [${{ vars.SITES || github.event.repository.name }}] }" >> $GITHUB_OUTPUT
deploy:
needs: set_vars
strategy:
matrix: ${{ fromJson(needs.set_vars.outputs.site_matrix))}}

Check failure on line 22 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: 22, Col: 15): Unexpected symbol: ')'. Located at position 45 within expression: fromJson(needs.set_vars.outputs.site_matrix)) .github/workflows/deco-deploy.yaml (Line: 22, 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 }}