forked from graalvm/native-build-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.34 KB
/
deploy-snapshots.yml
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
34
35
36
37
38
39
name: "Deploy snapshots"
on:
workflow_run:
workflows: [ "deploy-documentation", "test-native-gradle-plugin", "test-native-maven-plugin", "test-junit-platform-native" ]
branches: [ "master" ]
types:
- completed
workflow_dispatch:
concurrency:
group: "workflow = ${{ github.workflow }}, ref = ${{ github.event.ref }}, pr = ${{ github.event.pull_request.id }}"
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.repository != 'graalvm/native-build-tools' }}
jobs:
deploy-snapshots:
name: "Build and deploy snapshots"
if: ${{ github.repository == 'graalvm/native-build-tools' }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
java-version: [ 17 ]
os: [ ubuntu-22.04 ]
steps:
- name: "☁ Checkout repository"
uses: actions/checkout@v4
with:
ssh-key: "${{ secrets.SSH_PRIVATE_KEY }}"
- name: "🔧 Prepare environment"
uses: ./.github/actions/prepare-environment
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
java-version: ${{ matrix.java-version }}
push-access: 1
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: "🌍 Build and publish snapshots"
run: |
./gradlew publishToMavenLocal publishAllPublicationsToSnapshotsRepository --no-parallel