GitHub disallows secrets in job-level if expressions #10
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
| --- | ||
|
Check failure on line 1 in .github/workflows/hatchbox-deploy.yml
|
||
| # Deploy the OSS demo/production Hatchbox app when a release tag is pushed. | ||
| # Add HATCHBOX_DEPLOY_KEY to repo secrets (App → Repository tab in Hatchbox.io). | ||
| name: Hatchbox Deploy | ||
| on: | ||
| push: | ||
| tags: | ||
| - "v*.*.*" | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| deploy: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Deploy to Hatchbox | ||
| if: secrets.HATCHBOX_DEPLOY_KEY != '' | ||
| uses: hatchboxio/github-hatchbox-deploy-action@3bbadafe51e89bbf29fd3932bd84534f4fc9a00c # v2 | ||
| with: | ||
| deploy_key: ${{ secrets.HATCHBOX_DEPLOY_KEY }} | ||
| sha: ${{ github.sha }} | ||