Make sure that base folder exists (#10) #123
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
name: "Lint and build code, and publish artifacts to repository" | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Clone code" | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: "Lint code" | |
uses: ./.github/actions/lint | |
build: | |
needs: lint | |
runs-on: macos-latest | |
steps: | |
- name: "Clone code" | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: "Set up Adopt OpenJDK 17" | |
uses: ./.github/actions/java | |
- name: "Validate Gradle wrapper" | |
uses: gradle/wrapper-validation-action@v1 | |
publish: | |
needs: build | |
permissions: | |
contents: write | |
packages: write | |
uses: touchlab/KMMBridgeGithubWorkflow/.github/workflows/[email protected] | |
with: | |
runsOn: "macOS-14" | |
jvmVersion: 17 | |
versionBaseProperty: LIBRARY_VERSION | |
publishTask: kmmBridgePublish publishAllPublicationsToGitHubPackagesRepository | |
secrets: | |
gradle_params: -PGITHUB_PUBLISH_USER=${{ secrets.GITHUB_ACTOR }} -PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} -PGITHUB_REPO=https://github.com/Airthings/KmpLog.git |