Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve publishing to Maven by extracting version from Git tag instead of bumping it as a commit #127

Merged
merged 6 commits into from
Aug 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and test all
name: Build and test

on:
push:
Expand All @@ -18,13 +18,13 @@ jobs:
uses: ./.github/workflows/lint.yml

build-linux:
name: Build Linux
name: Linux
uses: ./.github/workflows/build-linux.yml

build-macos:
name: Build macOS
name: macOS
uses: ./.github/workflows/build-macos.yml

build-sample-app-macos:
name: Build Sample App macOS
name: macOS
uses: ./.github/workflows/build-sample-app-macos.yml
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

jobs:
lint:
name: Lint checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Publish
on:
release:
types: [prereleased, released]
workflow_dispatch:

jobs:
publish:
Expand Down Expand Up @@ -33,8 +34,11 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Extract version from tag
run: ./version-up.sh --prefix v --stay

- name: Publish to MavenCentral
run: ./gradlew publishAllPublicationsToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository
run: VERSION=$(cat version.properties | grep snapshot.version | awk -F '=v' '{print $2}') ./gradlew publishAllPublicationsToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.gradle
.idea
local.properties
version.properties
.DS_Store
build/
captures
Expand Down
3 changes: 0 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,3 @@ kotlin.mpp.enableCInteropCommonization=true
#Compose
org.jetbrains.compose.experimental.jscanvas.enabled=true
org.jetbrains.compose.experimental.wasm.enabled=true

# Versions
webRtcKmpVersion=0.125.1
Loading
Loading