Add ability to view default edit-template in interact context menu #6024
Workflow file for this run
This file contains hidden or 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: Preview Host | |
| on: | |
| pull_request: | |
| paths: | |
| - "packages/host/**" | |
| - "packages/boxel-ui/**" | |
| - "packages/boxel-icons/**" | |
| - ".github/workflows/pr-boxel-host.yml" | |
| - ".github/workflows/preview-host.yml" | |
| - "package.json" | |
| - "pnpm-lock.yaml" | |
| permissions: | |
| contents: read | |
| issues: write | |
| checks: write | |
| pull-requests: write | |
| id-token: write | |
| statuses: write | |
| jobs: | |
| check-if-requires-preview: | |
| name: Check if a preview deploy is required | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: check-if-requires-preview-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| outputs: | |
| boxel-host-files-changed: ${{ steps.boxel-host-files-that-changed.outputs.any_changed }} | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Get boxel-host files that changed | |
| id: boxel-host-files-that-changed | |
| uses: tj-actions/changed-files@2f7c5bfce28377bc069a65ba478de0a74aa0ca32 # 46.0.1 | |
| with: | |
| files: | | |
| .github/workflows/build-host.yml | |
| .github/workflows/deploy-host.yml | |
| .github/workflows/pr-boxel-host.yml | |
| .github/workflows/preview-host.yml | |
| packages/host/** | |
| packages/boxel-ui/** | |
| packages/boxel-icons/** | |
| deploy-host-preview-staging: | |
| name: Deploy a boxel-host staging preview to S3 | |
| runs-on: ubuntu-latest | |
| # github.event.pull_request.head.repo.full_name == github.repository: true if pr is from the original repo, false if it's from a fork | |
| # github.head_ref: the branch that the pull request is from. only appears on pull_request events | |
| if: github.event.pull_request.head.repo.full_name == github.repository && github.head_ref && needs.check-if-requires-preview.outputs.boxel-host-files-changed == 'true' | |
| needs: check-if-requires-preview | |
| concurrency: | |
| group: deploy-host-preview-staging-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@ec61189d14ec14c8efccab744f656cffd0e33f37 # v6.1.0 | |
| with: | |
| role-to-assume: arn:aws:iam::680542703984:role/boxel-host | |
| aws-region: us-east-1 | |
| - name: Load app environment variables | |
| shell: bash | |
| run: cat packages/host/config/staging.env >> $GITHUB_ENV | |
| - name: Deploy boxel-host preview | |
| uses: ./.github/actions/deploy-ember-preview | |
| env: | |
| S3_PREVIEW_BUCKET_NAME: boxel-host-preview.stack.cards | |
| AWS_S3_BUCKET: boxel-host-preview.stack.cards | |
| AWS_REGION: us-east-1 | |
| AWS_CLOUDFRONT_DISTRIBUTION: EU4RGLH4EOCHJ | |
| with: | |
| package: boxel-host | |
| environment: staging | |
| deploy-host-preview-production: | |
| name: Deploy a boxel-host production preview to S3 | |
| runs-on: ubuntu-latest | |
| # github.event.pull_request.head.repo.full_name == github.repository: true if pr is from the original repo, false if it's from a fork | |
| # github.head_ref: the branch that the pull request is from. only appears on pull_request events | |
| if: github.event.pull_request.head.repo.full_name == github.repository && github.head_ref && needs.check-if-requires-preview.outputs.boxel-host-files-changed == 'true' | |
| needs: check-if-requires-preview | |
| concurrency: | |
| group: deploy-host-preview-production-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@ec61189d14ec14c8efccab744f656cffd0e33f37 # v6.1.0 | |
| with: | |
| role-to-assume: arn:aws:iam::120317779495:role/boxel-host | |
| aws-region: us-east-1 | |
| - name: Load app environment variables | |
| shell: bash | |
| run: cat packages/host/config/production.env >> $GITHUB_ENV | |
| - name: Deploy boxel-host preview | |
| uses: ./.github/actions/deploy-ember-preview | |
| env: | |
| S3_PREVIEW_BUCKET_NAME: boxel-host-preview.boxel.ai | |
| AWS_S3_BUCKET: boxel-host-preview.boxel.ai | |
| AWS_REGION: us-east-1 | |
| AWS_CLOUDFRONT_DISTRIBUTION: E2PZR9CIAW093B | |
| with: | |
| package: boxel-host | |
| environment: production | |
| post-preview-comment: | |
| name: Update preview comment | |
| needs: | |
| - deploy-host-preview-staging | |
| - deploy-host-preview-production | |
| if: ${{ !cancelled() && (needs.deploy-host-preview-staging.result == 'success' || needs.deploy-host-preview-production.result == 'success') }} | |
| uses: ./.github/workflows/preview-comment.yml | |
| with: | |
| pr-number: ${{ github.event.pull_request.number }} | |
| head-sha: ${{ github.event.pull_request.head.sha }} | |
| secrets: inherit |