-
Notifications
You must be signed in to change notification settings - Fork 9
33 lines (31 loc) · 977 Bytes
/
post-merge.yml
File metadata and controls
33 lines (31 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
on:
push:
tags:
- "gooddata-server-oauth2-*.*.*"
- "*.*.*"
jobs:
###########################
# BUILD & PUBLISH STAGE
###########################
test-kotlin:
runs-on:
group: infra1-runners-arc
labels: runners-cxa-xlarge
steps:
- uses: gooddata/github-actions-public/codeartifact/get-token@master
- uses: actions/checkout@v6
- name: cache
uses: actions/cache@v4
with:
key: kotlin-build
path: .gradle
- name: Get Tag Name
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Publish to Nexus and to GitLab with Gradle Wrapper
env:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
GITLAB_PACKAGES_UPLOAD_TOKEN: ${{ secrets.GITLAB_PACKAGES_UPLOAD_TOKEN }}
run: |
./gradlew clean publish -Pversion=$TAG_NAME --info --no-configuration-cache