Skip to content

Commit aabeb1f

Browse files
committed
Update workflows to use the main branch for development
1 parent ea86296 commit aabeb1f

7 files changed

+14
-25
lines changed

.github/workflows/build-branch.yml

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches-ignore:
66
- main
7-
- dev
87
- kotlin-eap/*
98

109
jobs:

.github/workflows/build-dev.yml

-15
This file was deleted.

.github/workflows/build-main.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,5 @@ jobs:
1111

1212
publish:
1313
needs: [ checks ]
14-
uses: ./.github/workflows/publish-website.yml
15-
permissions:
16-
contents: read
17-
pages: write
18-
id-token: write
14+
uses: ./.github/workflows/publish-snapshot.yml
15+
secrets: inherit

.github/workflows/build-release.yml

+8
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,11 @@ jobs:
1212
needs: [ checks ]
1313
uses: ./.github/workflows/publish-release.yml
1414
secrets: inherit
15+
16+
publish-website:
17+
needs: [ publish ]
18+
uses: ./.github/workflows/publish-website.yml
19+
permissions:
20+
contents: read
21+
pages: write
22+
id-token: write

.github/workflows/publish-snapshot.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ jobs:
1616
cache-disabled: true
1717

1818
- name: Publish to Maven Local (prepare packages)
19-
run: ./gradlew publishToMavenLocal --no-configuration-cache
19+
run: ./gradlew publishToMavenLocal -Pversion=0.3.0-SNAPSHOT --no-configuration-cache
2020
env:
2121
ORG_GRADLE_PROJECT_signingKey: ${{secrets.signingKey}}
2222
ORG_GRADLE_PROJECT_signingPassword: ${{secrets.signingPassword}}
2323
ORG_GRADLE_PROJECT_sonatypeUsername: ${{secrets.sonatypeUsername}}
2424
ORG_GRADLE_PROJECT_sonatypePassword: ${{secrets.sonatypePassword}}
2525

2626
- name: Publish snapshot to Sonatype
27-
run: ./gradlew publishAllPublicationsToSnapshotRepository --no-configuration-cache
27+
run: ./gradlew publishAllPublicationsToSnapshotRepository -Pversion=0.3.0-SNAPSHOT --no-configuration-cache
2828
env:
2929
ORG_GRADLE_PROJECT_signingKey: ${{secrets.signingKey}}
3030
ORG_GRADLE_PROJECT_signingPassword: ${{secrets.signingPassword}}

.github/workflows/run-build-project.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/checkout@v4
1919
- uses: ./.github/actions/setup-gradle
2020
with:
21-
cache-read-only: ${{ github.ref_name != 'dev' }}
21+
cache-read-only: ${{ github.ref_name != 'main' }}
2222

2323
- if: matrix.os == 'windows-latest'
2424
uses: msys2/setup-msys2@v2

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44

55
group=dev.whyoleg.cryptography
6-
version=0.3.0-SNAPSHOT
6+
version=0.3.0
77
#Kotlin
88
kotlin.mpp.import.enableKgpDependencyResolution=true
99
kotlin.mpp.enableCInteropCommonization=true

0 commit comments

Comments
 (0)