2
0
This repository has been archived on 2020-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
sentry-onpremise/.github/workflows/release.yml

39 lines
1.4 KiB
YAML
Raw Normal View History

2020-06-16 21:49:00 +02:00
name: release
on:
repository_dispatch:
types: [release]
schedule:
# We want the release to be at 10 or 11am Pacific Time
# We also make this an hour after all others such as Sentry,
# Snuba, and Relay to make sure their releases finish.
- cron: '0 18 15 * *'
jobs:
release:
2020-06-14 16:29:34 +02:00
runs-on: ubuntu-latest
name: "Release a new version"
steps:
- id: calver
if: ${{ !github.event.client_payload.version }}
run: echo "::set-output name=version::$(date +'%y.%-m.0')"
2020-06-14 16:29:34 +02:00
- uses: actions/checkout@v2
- uses: getsentry/craft@master
2020-06-14 16:29:34 +02:00
with:
action: prepare
version: ${{ github.event.client_payload.version || steps.calver.outputs.version }}
env:
DRY_RUN: ${{ github.event.client_payload.dry_run }}
2020-06-16 21:48:09 +02:00
GIT_COMMITTER_NAME: getsentry-bot
GIT_AUTHOR_NAME: getsentry-bot
EMAIL: bot@getsentry.com
- uses: getsentry/craft@master
with:
action: publish
version: ${{ github.event.client_payload.version || steps.calver.outputs.version }}
keep_branch: '--keep-branch'
no_merge: '--no-merge'
env:
DRY_RUN: ${{ github.event.client_payload.dry_run }}
2020-06-16 21:48:09 +02:00
GIT_COMMITTER_NAME: getsentry-bot
GIT_AUTHOR_NAME: getsentry-bot
EMAIL: bot@getsentry.com