build: use all type distribution to read Gradle impl during plugin dev #410
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'microsoft' | |
java-version: '17' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
dependency-graph: generate-and-submit | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.node-version' | |
- uses: pnpm/action-setup@v4 | |
- 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 | |
pnpm install | |
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@v4 | |
if: always() | |
with: | |
name: reports | |
path: plugin/build/reports |