Ghost/.github/workflows/release.yml
Daniel Lockyer c2f5ed07d9
Updated release GitHub Action to reflect updates
no issue

- checkout v2 now fetches all tags and branches so the extra line is not needed
2020-05-28 17:24:13 +01:00

28 lines
667 B
YAML

name: Release
on:
push:
tags:
- '*'
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 }}
FORCE_COLOR: 1
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- run: yarn
- run: grunt release --skip-tests
- uses: tryghost/action-ghost-release@master
- run: npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
- run: npm publish