Revert "Revert "Add deco-deploy github action"" #12
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 | ||
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 GitHub Actions / DeployInvalid workflow file
|
||
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 }} |