Skip to content

Commit

Permalink
Merge pull request #5 from iodigital-com/gradle-plugin-2
Browse files Browse the repository at this point in the history
Update pipelines
  • Loading branch information
crysxd authored Oct 31, 2024
2 parents 644905c + 6de6278 commit 37414e1
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,21 @@ jobs:

- name: Build distribution
id: build
run: ./gradlew clean build -PAzureBuildNumber="${{ github.run_id }}"
run: |
echo "${{ secrets.GRADLE_PUBLISH_KEY }}" > figex-cli/.figmatoken
./gradlew clean build -PAzureBuildNumber="${{ github.run_id }}" --no-build-cache
- name: Publish to Maven Central
run: ./gradlew publish
run: ./gradlew publish -PAzureBuildNumber="${{ github.run_id }}" --no-build-cache
env:
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralPassword }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKey }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyPassword }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralUsername }}

- name: Publish to Gradle Plugin Repository
run: ./gradlew publishPlugins -PAzureBuildNumber="${{ github.run_id }}" -Pgradle.publish.key="${{ secrets.GRADLE_PUBLISH_KEY }}" -Pgradle.publish.secret="${{ secrets.GRADLE_PUBLISH_SECRET }}" --no-build-cache

- name: Create tag
uses: tvdias/github-tagger@v0.0.1
with:
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This is a basic workflow to help you get started with Actions

name: Test

on:
pull_request:

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Build distribution
id: build
run: |
echo "${{ secrets.FIGMA_TOKEN }}" > figex-cli/.figmatoken
gradle clean check -PAzureBuildNumber="${{ github.run_id }}"
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action/linux@v2
if: always()
with:
files: |
gradle-plugin/build/test-results/**/*.xml
- uses: actions/upload-artifact@v4
if: always()
with:
name: Test Results
path: gradle-plugin/build/reports/**

0 comments on commit 37414e1

Please sign in to comment.