-
-
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
fb5df45
commit ead257a
Showing
8 changed files
with
66 additions
and
172 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 | ||
|
||
on: | ||
workflow_call: | ||
pull_request: | ||
|
||
permissions: | ||
contents: write | ||
|
||
|
||
env: | ||
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest #add macos | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Generate and submit dependency graph | ||
uses: gradle/actions/dependency-submission@v3 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
|
||
# make sure ncurses is installed | ||
- name: Build with Gradle | ||
run: ./gradlew assemble | ||
|
||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: dist | ||
path: build/bin/**/* |
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 |
---|---|---|
@@ -1,11 +1,6 @@ | ||
name: Check formatting | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
permissions: | ||
|
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
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
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 |
---|---|---|
@@ -1,61 +1,63 @@ | ||
name: build and publish | ||
name: Release | ||
|
||
on: | ||
push: | ||
#branches: [ main ] | ||
tags: | ||
- '*' | ||
|
||
env: | ||
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false" | ||
|
||
jobs: | ||
checkGradleWrapper: | ||
check-gradle-wrapper: | ||
uses: NorseDreki/dogcat/.github/workflows/check-gradle-wrapper.yml@main | ||
|
||
build: | ||
needs: checkGradleWrapper | ||
release-notes: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew assemble | ||
|
||
- name: Extract release notes | ||
id: release_notes | ||
uses: ffurrer2/extract-release-notes@v2 | ||
with: | ||
release_notes_file: RELEASE_NOTES.md | ||
|
||
releaseBrew: | ||
- name: Upload release notes | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: release-notes | ||
path: RELEASE_NOTES.md | ||
|
||
build: | ||
needs: check-gradle-wrapper | ||
uses: NorseDreki/dogcat/.github/workflows/build.yml@main | ||
|
||
release-brew: | ||
needs: build | ||
uses: NorseDreki/dogcat/.github/workflows/release-brew.yml@main | ||
secrets: inherit | ||
|
||
releaseSnap: | ||
release-snap: | ||
needs: build | ||
uses: NorseDreki/dogcat/.github/workflows/release-snap.yml@main | ||
secrets: inherit | ||
|
||
createRelease: | ||
needs: [ checkGradleWrapper ] | ||
needs: [ build, release-notes, release-brew, release-snap ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Download release notes | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: release-notes | ||
|
||
- name: Create Release | ||
uses: softprops/action-gh-release@v2 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
body: 'some body for release лрпрп' | ||
body_path: release-notes/RELEASE_NOTES.md | ||
draft: false | ||
prerelease: false | ||
files: | | ||
CHANGELOG.md | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PAT }} |
This file was deleted.
Oops, something went wrong.