Skip to content

Commit

Permalink
Add pre-release workflow (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky authored Nov 3, 2023
1 parent 9675a69 commit 6d538ba
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Pre-release
on:
push:
tags:
- '^v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+$'

jobs:
pre-release:
name: Pre-release
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Set up environment
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}

- name: Publish GitHub release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true

- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: "${{ secrets.SENTRY_AUTH_TOKEN }}"
SENTRY_ORG: "${{ secrets.SENTRY_ORG }}"
SENTRY_PROJECT: "${{ secrets.SENTRY_PROJECT }}"
SENTRY_URL: "${{ secrets.SENTRY_URL }}"
with:
environment: production
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release
on:
push:
tags:
- 'v*.*.*'
- '^v[0-9]+.[0-9]+.[0-9]+$'

jobs:
release:
Expand Down

0 comments on commit 6d538ba

Please sign in to comment.