2020-01-29 15:19:48 +00:00
|
|
|
name: Ghost-CLI
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
2020-01-29 15:52:24 +00:00
|
|
|
clean-install:
|
2020-01-29 15:19:48 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: '10'
|
|
|
|
- run: npm install -g ghost-cli@latest
|
|
|
|
- run: zip -r ghost.zip .
|
|
|
|
- run: mkdir test
|
2020-01-29 15:52:24 +00:00
|
|
|
- run: ghost install local -d test --zip ../ghost.zip
|
|
|
|
latest-release:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: '10'
|
|
|
|
- run: npm install -g ghost-cli@latest
|
|
|
|
- run: zip -r ghost.zip .
|
|
|
|
- run: mkdir test
|
|
|
|
- run: ghost install local -d test
|
|
|
|
- run: ghost update -d test --zip ../ghost.zip
|
|
|
|
# previous-major:
|
|
|
|
# runs-on: ubuntu-latest
|
|
|
|
# steps:
|
|
|
|
# - uses: actions/checkout@v2
|
|
|
|
# - run: git submodule update --init --force --recursive --depth=1
|
|
|
|
# - uses: actions/setup-node@v1
|
|
|
|
# with:
|
|
|
|
# node-version: '10'
|
|
|
|
# - run: npm install -g ghost-cli@latest
|
|
|
|
# - run: zip -r ghost.zip .
|
|
|
|
# - run: mkdir test
|
|
|
|
# - run: ghost install v2 --local -d test
|
|
|
|
# - run: ghost update -f -d test --zip ../ghost.zip
|