Skip to content

Commit c6c1fe4

Browse files
authored
New ADO publishing
1 parent 35ace30 commit c6c1fe4

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish to Azure Artifacts
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- '*'
8+
9+
jobs:
10+
PublishToAzureArtifacts:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v6
16+
with:
17+
submodules: recursive
18+
19+
- name: Set up JDK
20+
uses: actions/setup-java@v5
21+
with:
22+
distribution: 'temurin'
23+
java-version: 17
24+
cache: 'gradle'
25+
26+
- name: Publish to Azure DevOps Artifacts
27+
run: |
28+
./gradlew publish
29+
env:
30+
AZURE_DEVOPS_ARTIFACT_USERNAME: ${{ secrets.AZURE_DEVOPS_ARTIFACT_USERNAME }}
31+
AZURE_DEVOPS_ARTIFACT_TOKEN: ${{ secrets.AZURE_DEVOPS_ARTIFACT_TOKEN }}
32+
RELEASE_VERSION: ${{ github.ref_name }}
33+
shell: bash

0 commit comments

Comments
 (0)