Added debug to episode.yml #877
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: Episode | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- 'renovate/*' | |
paths: | |
- 'packages/episode/**' | |
- '.github/workflows/episode.yml' | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/')) | |
steps: | |
- uses: actions/checkout@v4 | |
- run: yarn | |
- run: yarn test:ci --theme episode | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
needs: test | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Echo Secret in Debug Mode | |
env: | |
MY_SECRET: ${{ secrets.EPISODE_GHOST_ADMIN_API_URL }} | |
run: | | |
echo "##[debug] Secret value: $MY_SECRET" | |
# Ensure MY_SECRET is not exposed outside of debug | |
- name: Deploy theme | |
uses: TryGhost/action-deploy-theme@v1 | |
with: | |
api-url: ${{ secrets.EPISODE_GHOST_ADMIN_API_URL }} | |
api-key: ${{ secrets.EPISODE_GHOST_ADMIN_API_KEY }} | |
working-directory: packages/episode | |
subtree: | |
name: Subtree | |
runs-on: ubuntu-latest | |
needs: test | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: nxtlvlsoftware/[email protected] | |
with: | |
repo: 'TryGhost/Episode' | |
path: 'packages/episode' | |
deploy_key: ${{secrets.EPISODE_GITHUB_DEPLOY_KEY}} | |
force: true |