2020-03-31 12:25:02 -05:00
|
|
|
name: Release
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
2020-04-06 04:49:17 -05:00
|
|
|
- '*'
|
2020-03-31 12:25:02 -05:00
|
|
|
jobs:
|
|
|
|
automate:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
|
|
|
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
|
2020-04-03 06:44:59 -05:00
|
|
|
|
|
|
|
- run: grunt release --skip-tests
|
|
|
|
|
2020-04-06 09:08:17 -05:00
|
|
|
- uses: tryghost/action-ghost-release@master
|
2020-04-02 02:50:50 -05:00
|
|
|
env:
|
|
|
|
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
|
|
|
SENTRY_ORG: ghost-foundation
|
|
|
|
SENTRY_PROJECT: ghost
|
2020-04-06 09:08:17 -05:00
|
|
|
|
|
|
|
- run: npm publish --registry https://registry.npmjs.org/
|
|
|
|
env:
|
|
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|