Skip to content

Commit

Permalink
- add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Zombii committed May 25, 2024
1 parent a967c82 commit 5fd1efe
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/UploadToCrmMaven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CRM Upload To Releases

on:
release:
types: [created]

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
server-id: github
settings-path: ${{ github.workspace }}

- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5

- name: Build with Gradle
run: ./gradlew build

- name: Publish to GitHub Packages
run: ./gradlew publishAllPublicationsToCRMReleasesRepository
env:
CRMReleasesUsername: ${{ secrets.CRM_GITHUB_USER }}
CRMReleasesPassword: ${{ secrets.CRM_GITHUB_PASS }}

0 comments on commit 5fd1efe

Please sign in to comment.