Skip to content

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

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

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

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) }}
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 }}