mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03:00
Reverted "Disabled the Ghost-CLI Github Action" (#17562)
This reverts commit 5103b58c0c
.
- We only disabled this so that we could release v5.57.1
This commit is contained in:
parent
f839c2289c
commit
2b9e322b3e
57
.github/workflows/ci.yml
vendored
57
.github/workflows/ci.yml
vendored
@ -643,8 +643,61 @@ jobs:
|
||||
if: needs.job_get_metadata.outputs.changed_core == 'true'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: noop
|
||||
run: echo "noop"
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: true
|
||||
- uses: actions/setup-node@v3
|
||||
env:
|
||||
FORCE_COLOR: 0
|
||||
with:
|
||||
node-version: '16.14.0'
|
||||
|
||||
- name: Install Ghost-CLI
|
||||
run: npm install -g ghost-cli@latest
|
||||
|
||||
- name: Restore caches
|
||||
uses: ./.github/actions/restore-cache
|
||||
env:
|
||||
DEPENDENCY_CACHE_KEY: ${{ needs.job_install_deps.outputs.dependency_cache_key }}
|
||||
|
||||
- run: npm --no-git-tag-version version minor # We need to artificially bump the minor version to get migrations to run
|
||||
working-directory: ghost/core
|
||||
|
||||
- run: npm pack
|
||||
working-directory: ghost/core
|
||||
|
||||
- run: mv ghost-*.tgz ghost.tgz
|
||||
working-directory: ghost/core
|
||||
|
||||
- name: Clean Install
|
||||
run: |
|
||||
DIR=$(mktemp -d)
|
||||
ghost install local -d $DIR --archive $(pwd)/ghost/core/ghost.tgz
|
||||
|
||||
- name: Latest Release
|
||||
run: |
|
||||
DIR=$(mktemp -d)
|
||||
ghost install local -d $DIR
|
||||
ghost update -d $DIR --archive $(pwd)/ghost/core/ghost.tgz
|
||||
|
||||
- name: Update from latest v4
|
||||
run: |
|
||||
DIR=$(mktemp -d)
|
||||
ghost install v4 --local -d $DIR
|
||||
ghost update -f -d $DIR --archive $(pwd)/ghost/core/ghost.tgz
|
||||
|
||||
- name: Print debug logs
|
||||
if: failure()
|
||||
run: |
|
||||
[ -f ~/.ghost/logs/*.log ] && cat ~/.ghost/logs/*.log
|
||||
|
||||
- uses: tryghost/actions/actions/slack-build@main
|
||||
if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||
with:
|
||||
status: ${{ job.status }}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||
|
||||
job_coverage:
|
||||
name: Coverage
|
||||
|
Loading…
Reference in New Issue
Block a user