-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f6da90
commit 2234164
Showing
2 changed files
with
64 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Build and Publish | ||
|
||
on: [push] | ||
|
||
jobs: | ||
test: | ||
name: 'Build and Publish' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: '17' | ||
- name: Run build | ||
run: ./gradlew build | ||
- name: Archive Tests Results | ||
uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: Tests Results | ||
path: "**/build/reports/tests/" | ||
retention-days: 2 | ||
- name: Publish JVM | ||
run: ./gradlew publish | ||
if: github.ref == 'refs/heads/main' | ||
env: | ||
GITHUB_USERNAME: ${{secrets.GITHUB_ACTOR}} | ||
GITHUB_PASSWORD: ${{secrets.GITHUB_TOKEN}} | ||
- name: Publish NPM | ||
run: ./gradlew publishJsPackageToGithubRegistry | ||
if: github.ref == 'refs/heads/main' | ||
env: | ||
GITHUB_USERNAME: ${{secrets.GITHUB_ACTOR}} | ||
GITHUB_PASSWORD: ${{secrets.GITHUB_TOKEN}} |
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