This repository has been archived by the owner on May 20, 2024. It is now read-only.
chore(deps): bump jvm from 1.9.20 to 1.9.21 #469
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Deploy | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Check if running on develop | |
if: endsWith(github.ref, '/develop') | |
run: | | |
echo "::set-env name=TAG::dev" | |
- name: Check if running on master | |
if: endsWith(github.ref, '/main') | |
run: | | |
echo "::set-env name=TAG::latest" | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- uses: gradle/[email protected] | |
with: | |
arguments: test ktlintCheck | |
- uses: gradle/[email protected] | |
with: | |
arguments: installDist | |
- name: Docker Publish | |
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' | |
uses: manusa/[email protected] | |
with: | |
name: devcord/devcordbot | |
tag: ${{ env.TAG }} | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_SECRET }} | |
include pull requests: false | |
- name: Create Sentry Release | |
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
SENTRY_ORG: ${{ secrets.SENTRY_ORG }} | |
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} | |
run: | | |
# Install Sentry CLI | |
curl -sL https://sentry.io/get-cli/ | bash | |
# Create new Sentry release | |
export SENTRY_RELEASE=$(sentry-cli releases propose-version) | |
sentry-cli releases new $SENTRY_RELEASE -p $SENTRY_PROJECT | |
sentry-cli releases set-commits --auto $SENTRY_RELEASE | |
sentry-cli releases finalize $SENTRY_RELEASE |