mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
f8b85354d3
no issue
36 lines
894 B
YAML
36 lines
894 B
YAML
name: Ghost-CLI
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
test:
|
|
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 .
|
|
|
|
- name: Clean Install
|
|
run: |
|
|
DIR=$(mktemp -d)
|
|
ghost install local -d $DIR --zip $GITHUB_WORKSPACE/ghost.zip
|
|
|
|
- name: Latest Release
|
|
run: |
|
|
DIR=$(mktemp -d)
|
|
ghost install local -d $DIR
|
|
ghost update -d $DIR --zip $GITHUB_WORKSPACE/ghost.zip
|
|
|
|
# - name: Previous Major
|
|
# run: |
|
|
# DIR=$(mktemp -d)
|
|
# ghost install v2 --local -d $DIR
|
|
# ghost update -f -d $DIR --zip $GITHUB_WORKSPACE/ghost.zip
|