-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (33 loc) · 1.08 KB
/
snapshot.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
name: Publish wgpu4k snapshot
on:
workflow_dispatch:
inputs:
version:
description: 'version to publish'
required: false
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 22
- name: Build and publish with Gradle
# Each step must be separate, so native libraries are taken into account.
run: |
./gradlew fetch-native-dependencies
./gradlew assemble
./gradlew build
./gradlew publish --info
env:
SNAPSHOT: "true"
VERSION: ${{ github.event.inputs.version }}
SONATYPE_LOGIN: ${{ secrets.SONATYPE_LOGIN }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.PGP_PUBLIC }}
JRELEASER_GPG_SECRET_KEY: ${{ secrets.PGP_PRIVATE }}
JRELEASER_GPG_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}