mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Extracted Canary workflow to template
refs 4aee97472e
- the referenced commit copied the workflow file to our shared templates
repository
- this commit switches to using that template
- this should help reduce duplication when we're doing v5
This commit is contained in:
parent
ef5d2b27ae
commit
c187b3d182
1 changed files with 1 additions and 39 deletions
40
.github/workflows/canary.yml
vendored
40
.github/workflows/canary.yml
vendored
|
@ -4,42 +4,4 @@ env:
|
|||
FORCE_COLOR: 1
|
||||
jobs:
|
||||
canary:
|
||||
runs-on: ubuntu-18.04
|
||||
name: Canary
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: true
|
||||
- uses: actions/setup-node@v3
|
||||
env:
|
||||
FORCE_COLOR: 0
|
||||
with:
|
||||
node-version: '14.17.0'
|
||||
cache: yarn
|
||||
|
||||
- name: Set up Git
|
||||
run: |
|
||||
git config --global pull.rebase true
|
||||
git config --global user.name "Ghost CI"
|
||||
git config --global user.email "ghost@example.com"
|
||||
|
||||
- run: yarn
|
||||
- run: yarn main
|
||||
|
||||
- run: echo "ghost_hash=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
||||
- run: echo "ghost_admin_hash=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
||||
working-directory: core/client
|
||||
- run: if [ -n "$(git status --porcelain)" ]; then git add core/client content/themes/casper && git commit -m "Updated Ghost-Admin and Casper"; fi
|
||||
|
||||
- run: npm version preminor --preid="pre.$ghost_hash.$ghost_admin_hash"
|
||||
- run: npm version preminor --preid="pre.$ghost_hash.$ghost_admin_hash"
|
||||
working-directory: core/client
|
||||
|
||||
- run: grunt release --skip-update
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ghost-canary
|
||||
path: .dist/release/*
|
||||
retention-days: 7
|
||||
uses: tryghost/actions/.github/workflows/canary.yml@main
|
||||
|
|
Loading…
Add table
Reference in a new issue