0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/.github/workflows/release.yml

27 lines
692 B
YAML
Raw Normal View History

2020-03-31 18:25:02 +01:00
name: Release
on:
push:
tags:
- '*'
2020-03-31 18:25:02 +01:00
jobs:
automate:
runs-on: ubuntu-latest
env:
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ghost-foundation
SENTRY_PROJECT: ghost
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2020-03-31 18:25:02 +01:00
FORCE_COLOR: 1
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- run: yarn
- run: grunt release --skip-tests
- uses: tryghost/action-ghost-release@master
- run: npm publish --registry https://registry.npmjs.org/