Skip to content

Update maven.yml

Update maven.yml #1

name: Sentry release
on:
push:
branches:
- bleeding
- bleeding-*
- master
jobs:
sentry-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Get version
run: |
SHA=$(echo $GITHUB_SHA | cut -c1-7)
PN_VERSION=$(mvn --no-transfer-progress help:evaluate -Dexpression=project.version -q -DforceStdout)-git-$SHA
echo "Version: $PN_VERSION"
echo "PN_VERSION=$PN_VERSION-git" >> $GITHUB_ENV
- 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 }}
with:
environment: production
version: ${{ env.PN_VERSION }}