All Projects → tclindner → sentry-releases-action

tclindner / sentry-releases-action

Licence: MIT license
A GitHub action that creates releases for Sentry.io.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to sentry-releases-action

action-setup-kube-tools
Github Action that setup Kubernetes tools (kubectl, kustomize, helm, kubeconform, conftest, yq, rancher, tilt, skaffold) very fast and cache them on the runner. Please [✩Star] if you're using it!
Stars: ✭ 45 (+18.42%)
Mutual labels:  github-actions, github-action
github-release
Github Action to create, update, or add files to Github Releases
Stars: ✭ 61 (+60.53%)
Mutual labels:  github-releases, github-actions
action-sync-node-meta
GitHub Action that syncs package.json with the repository metadata.
Stars: ✭ 25 (-34.21%)
Mutual labels:  github-actions, github-action
autoupdate
A GitHub Action that auto-updates pull requests branches, whenever changes are pushed to their destination branch.
Stars: ✭ 70 (+84.21%)
Mutual labels:  github-actions, github-action
sentry-release
GitHub Action for publishing a new release to Sentry.io
Stars: ✭ 13 (-65.79%)
Mutual labels:  sentry-io, github-actions
qodana-action
⚙️ Scan your Java, Kotlin, PHP, Python, JavaScript, TypeScript projects at GitHub with Qodana
Stars: ✭ 112 (+194.74%)
Mutual labels:  github-actions, github-action
build-godot-action
GitHub action that builds a Godot project for multiple platforms
Stars: ✭ 62 (+63.16%)
Mutual labels:  github-actions, github-action
overview
Automate your workflows with GitHub actions for MATLAB.
Stars: ✭ 40 (+5.26%)
Mutual labels:  github-actions, github-action
sentry
GitHub Actions for interacting with Sentry.io
Stars: ✭ 14 (-63.16%)
Mutual labels:  sentry-io, github-actions
Github Pages Deploy Action
Automatically deploy your project to GitHub Pages using GitHub Actions. This action can be configured to push your production-ready code into any branch you'd like.
Stars: ✭ 2,507 (+6497.37%)
Mutual labels:  github-actions, github-action
Setup-Nuget
Set up your GitHub Actions workflow with the latest version of Nuget.exe CLI tool
Stars: ✭ 27 (-28.95%)
Mutual labels:  github-actions, github-action
release-notify-action
GitHub Action that triggers e-mails with release notes when these are created
Stars: ✭ 64 (+68.42%)
Mutual labels:  github-releases, github-actions
git-actions
A GitHub Action to run arbitrary git commands
Stars: ✭ 72 (+89.47%)
Mutual labels:  github-actions, github-action
latex-action
GitHub Action to compile LaTeX documents
Stars: ✭ 123 (+223.68%)
Mutual labels:  github-actions, github-action
gajira
GitHub Actions for Jira
Stars: ✭ 100 (+163.16%)
Mutual labels:  github-actions, github-action
intellij-platform-plugin-verifier-action
GitHub Action for executing the intellij-plugin-verifier
Stars: ✭ 20 (-47.37%)
Mutual labels:  github-actions, github-action
laravel-phpinsights-action
Run PHP Insights in Laravel in Github Actions
Stars: ✭ 17 (-55.26%)
Mutual labels:  github-actions, github-action
misspell-fixer-action
📝Automatically fixes typos and mistakes in your source code and docs!
Stars: ✭ 123 (+223.68%)
Mutual labels:  github-actions, github-action
github-run-tests-action
mabl Github Actions implementation
Stars: ✭ 39 (+2.63%)
Mutual labels:  github-actions, github-action
travis-ci-latex-pdf
Overview of different methods to build LaTeX with GitHub Actions or Travis-CI (idea by @jackolney but completely rewritten by @PHPirates and contributors).
Stars: ✭ 113 (+197.37%)
Mutual labels:  github-releases, github-actions

sentry-releases-action

license GitHub Actions status Dependency Status devDependency Status

A GitHub action that creates releases for Sentry.io.

What is sentry-releases-action?

A GitHub action that makes is easy to create a release in Sentry.io based on events in GitHub. Examples:

  • a GitHub release is published
  • a commit is pushed to master
  • a pull request is merged to master

How do I use it?

First thing first, let's make sure you have the necessary pre-requisites.

Pre-requisites

Create a workflow .yml file in your repo's .github/workflows directory. An example workflow is available below. For more information, reference the GitHub Help Documentation for Creating a workflow file.

Inputs

tagName

Required The tag being released. This is used as the Sentry release name. You can optionally prefix it using releaseNamePrefix.

environment

Required The name of the environment the release was deployed to.

releaseNamePrefix

Optional String that is prefixed to the tag to form the Sentry release name.

Please review Sentry's documentation regarding max length and supported characters in release names.

For more information on these inputs, see the API Documentation

sourceMapOptions

Optional A JSON object containing options to control source map uploading.

Refer to Sentry's CLI JS for possible values. The only required value is include which is an array of paths to upload source maps from.

Environment Variables

SENTRY_AUTH_TOKEN

Required Sentry auth token. The token needs the org:read and project:releases scopes.

SENTRY_ORG

Required Sentry organization.

SENTRY_PROJECT

Required Sentry project name.

SENTRY_URL

Optional URL to the Sentry instance, useful for e.g. on-prem deployments.

Example usage

name: Create a Sentry.io release
uses: tclindner/[email protected]
env:
  SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
  SENTRY_ORG: myAwesomeOrg
  SENTRY_PROJECT: myAwesomeProject
with:
  tagName: ${{ github.ref }}
  environment: qa

Note: sentry-releases-action will automatically trim refs/tags/ from tagName. This means you can pass GITHUB_REF directly from release events without the need of mutating it first.

If you prefer to use the commit as the release name, use ${{ github.sha }} for the tagName parameter.

Full example workflow

On every GitHub release event.

name: ReleaseWorkflow

on:
  release:
    types: [published, prereleased]


jobs:
  createSentryRelease:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@master
      - name: Create a Sentry.io release
        uses: tclindner/[email protected]
        env:
          SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
          SENTRY_ORG: myAwesomeOrg
          SENTRY_PROJECT: myAwesomeProject
        with:
          tagName: ${{ github.ref }}
          environment: qa

Assume you tagged your release as v1.0.0. github.ref would equal refs/tags/v1.0.0. This action automatically strips refs/tags/, so the Sentry release name is v1.0.0.

Example workflow with optional release prefix

On every GitHub release event.

name: ReleaseWorkflow

on:
  release:
    types: [published, prereleased]


jobs:
  createSentryRelease:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@master
      - name: Create a Sentry.io release
        uses: tclindner/[email protected]
        env:
          SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
          SENTRY_ORG: myAwesomeOrg
          SENTRY_PROJECT: myAwesomeProject
        with:
          tagName: ${{ github.ref }}
          environment: qa
          releaseNamePrefix: myAwesomeProject-

Scenario 1: Assume you tagged your release as v1.1.0. github.ref would equal refs/tags/v1.1.0. This action automatically strips refs/tags/, so the Sentry release name is myAwesomeProject-v1.1.0.

Scenario 2: Assume you tagged your release as 1.1.0 and you set releaseNamePrefix to myAwesomeProject@. github.ref would equal refs/tags/1.1.0. This action automatically strips refs/tags/, so the Sentry release name is [email protected].

Note: This action only works on Linux x86_64 systems.

Example workflow with optional sourcemap upload

On every GitHub release event.

name: ReleaseWorkflow

on:
  release:
    types: [published, prereleased]


jobs:
  createSentryRelease:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@master
      - name: Create a Sentry.io release
        uses: tclindner/[email protected]
        env:
          SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
          SENTRY_ORG: myAwesomeOrg
          SENTRY_PROJECT: myAwesomeProject
        with:
          tagName: ${{ github.ref }}
          environment: qa
          releaseNamePrefix: myAwesomeProject-
          sourceMapOptions: '{"include": ["build"]}'

As noted above, refer to Sentry's CLI JS for possible values. include is the only required value.

Note: This action only works on Linux x86_64 systems.

Related

sentry-release-deploy-action - Action used create a deploy for an existing release created by this action.

Contributing

Please see CONTRIBUTING.md.

Release History

Please see CHANGELOG.md.

License

Copyright (c) 2019-2022 Thomas Lindner. Licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].