0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/.github/workflows/release.yml
2020-04-03 13:37:33 +01:00

38 lines
964 B
YAML

name: Release
on:
push:
tags:
- '3.*'
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/*
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: yarn
- run: grunt release --skip-tests
- uses: tryghost/action-ghost-release@master
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: tclindner/sentry-releases-action@v1.0.0
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ghost-foundation
SENTRY_PROJECT: ghost
with:
tagName: ${{ github.ref }}
environment: general