Compare commits

...

8 Commits

Author SHA1 Message Date
0f5dcf9979 add github CI 2024-06-19 18:58:58 +03:00
601a16e420 Merge remote-tracking branch 'refs/remotes/github/main' into dev 2024-06-19 18:38:30 +03:00
SPC-code
7d0dcd1b91
Update pages.yml 2024-06-19 18:35:26 +03:00
SPC-code
b4b3ecc8d7
Update publish.yml 2024-06-19 18:23:36 +03:00
SPC-code
79f4d0eba5
Update pages.yml 2024-06-19 18:22:51 +03:00
SPC-code
390a896e0a
Update build.yml 2024-06-19 18:19:10 +03:00
234d4715b6 add github CI 2024-06-19 18:14:59 +03:00
SPC-code
bd6d8e2f8e
Merge pull request #24 from SciProgCentre/dev
0.3.0
2024-06-12 14:26:56 +03:00
3 changed files with 88 additions and 0 deletions

22
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Gradle build
on:
push:
branches: [ dev ]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4.1.7
- name: Set up JDK 17
uses: actions/setup-java@v4.2.1
with:
java-version: 17
distribution: liberica
- name: execute build
uses: gradle/gradle-build-action@v3.4.2
with:
arguments: build

39
.github/workflows/pages.yml vendored Normal file
View File

@ -0,0 +1,39 @@
name: Dokka publication
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: liberica
- name: execute build
uses: gradle/gradle-build-action@v3
with:
arguments: dokkaHtmlMultiModule
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'build/dokka/htmlMultiModule'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

27
.github/workflows/publish.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Gradle publish
on:
workflow_dispatch:
release:
types: [ created ]
jobs:
publish:
environment:
name: publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
- name: Set up JDK 17
uses: actions/setup-java@v4.2.1
with:
java-version: 17
distribution: liberica
- name: execute build
uses: gradle/gradle-build-action@v3.4.2
- name: Publish
shell: bash
run: >
./gradlew release --no-daemon --build-cache -Ppublishing.enabled=true
-Ppublishing.space.user=${{ secrets.SPACE_APP_ID }}
-Ppublishing.space.token=${{ secrets.SPACE_APP_SECRET }}