Skip to content

Updated deploy theme action pin #1779

Updated deploy theme action pin

Updated deploy theme action pin #1779

Workflow file for this run

name: Ease
on:
pull_request:
push:
branches:
- main
- 'renovate/*'
paths:
- 'packages/ease/**'
- '.github/workflows/ease.yml'
permissions:
contents: read
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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: 24
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- run: pnpm install --frozen-lockfile
- run: pnpm test:ci --theme ease
all-tests-pass:
name: All tests pass
if: always()
needs: [test]
runs-on: ubuntu-latest
steps:
- name: Verify all required jobs succeeded
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: test
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- name: Deploy theme
uses: TryGhost/action-deploy-theme@57d2c493d3fc90d624bb9b906d29066c61bbbfe1 # v2
with:
api-url: ${{ secrets.EASE_GHOST_ADMIN_API_URL }}
api-key: ${{ secrets.EASE_GHOST_ADMIN_API_KEY }}
working-directory: packages/ease
subtree:
name: Subtree
runs-on: ubuntu-latest
needs: test
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
fetch-depth: 0
- uses: nxtlvlsoftware/git-subtree-action@3d555981a570a2275a91c07b04b38d5e90d48c05 # 1.1
with:
repo: 'TryGhost/Ease'
path: 'packages/ease'
deploy_key: ${{secrets.EASE_GITHUB_DEPLOY_KEY}}
force: true