-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 1.04 KB
/
build.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
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
- uses: actions/setup-java@v3
with:
distribution: 'microsoft'
java-version: '11'
cache: 'gradle'
- uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: 'yarn'
- run: |
./gradlew build --no-daemon
echo "gradle.publish.key=$GRADLE_PUBLISH_KEY" > ~/.gradle/gradle.properties
echo "gradle.publish.secret=$GRADLE_PUBLISH_SECRET" >> ~/.gradle/gradle.properties
yarn
npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: reports
path: plugin/build/reports