-
Notifications
You must be signed in to change notification settings - Fork 3
32 lines (30 loc) · 1013 Bytes
/
release.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
name: release
on: [workflow_dispatch] # Manual trigger
permissions:
contents: write
jobs:
release:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v2
- uses: microsoft/[email protected]
with:
msbuild-architecture: x64
- uses: compnerd/gha-setup-swift@main
with:
github-repo: thebrowsercompany/swift-build
github-token: ${{ secrets.GITHUB_TOKEN }}
release-tag-name: 20240422.2
release-asset-name: installer-amd64.exe
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- run: dotnet tool install --global wix --version 5.0.0
- run: ./gradlew :windows:copyJniHeaders
- run: ./gradlew build publish --stacktrace
env:
MAVEN_URL: ${{ secrets.MAVEN_URL }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}