-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Showing
7 changed files
with
116 additions
and
64 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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,41 @@ | ||
name: GH Packages Autorelease | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'telegram-bot/**' | ||
- 'ksp/**' | ||
- 'webapps/**' | ||
- 'ktgram-utils/**' | ||
- 'ktor-starter/**' | ||
- 'spring-ktgram-starter/**' | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 11 | ||
|
||
- name: Get build version | ||
id: version | ||
run: | | ||
echo "git_branch=${GITHUB_REF#refs/heads/}" >> "$GITHUB_ENV" | ||
echo "git_hash=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV" | ||
echo "date=$(date +'%y%m%d')" >> "$GITHUB_ENV" | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3-beta | ||
with: | ||
gradle-version: current | ||
|
||
- name: Publish to Gh | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
run: ./gradlew publishAllPublicationsToGHPackagesRepository -PlibVersion=${{ env.git_branch }}-${{ env.date }}~${{ env.git_hash }} |
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,42 @@ | ||
name: Packages Cleanup | ||
|
||
on: | ||
schedule: | ||
- cron: "0 6 * * 1" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
cleanup: | ||
permissions: | ||
contents: read | ||
packages: write | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
package_name: [ | ||
"eu.vendeli.telegram-bot-jvm", | ||
"eu.vendeli.telegram-bot", | ||
"eu.vendeli.ksp", | ||
"eu.vendeli.ksp-jvm", | ||
"eu.vendeli.ktor-starter-jvm", | ||
"eu.vendeli.ktor-starter", | ||
"eu.vendeli.ktgram-utils-js", | ||
"eu.vendeli.ktgram-utils-jvm", | ||
"eu.vendeli.ktgram-utils", | ||
"eu.vendeli.ktgram-utils-linuxx64", | ||
"eu.vendeli.ktgram-utils-mingwx64", | ||
"eu.vendeli.spring-ktgram-starter", | ||
"eu.vendeli.spring-ktgram-starter-jvm", | ||
"eu.vendeli.telegram-bot-js", | ||
"eu.vendeli.telegram-bot-linuxx64", | ||
"eu.vendeli.telegram-bot-mingwx64", | ||
"eu.vendeli.webapps", | ||
"eu.vendeli.webapps-js" | ||
] | ||
steps: | ||
- name: Delete old versions of ${{ matrix.package_name }} | ||
uses: actions/[email protected] | ||
with: | ||
package-type: maven | ||
package-name: ${{ matrix.package_name }} | ||
min-versions-to-keep: 10 |
This file was deleted.
Oops, something went wrong.
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