Skip to content

More ci optimisations #122

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

Merged
merged 1 commit into from
Jan 17, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
group: check-${{ github.workflow }}-${{ github.head_ref || github.ref }}

env:
GRADLE_OPTS: "-Dorg.gradle.daemon=true"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
env:
GRADLE_OPTS: "-Dorg.gradle.daemon=true"

concurrency:
cancel-in-progress: true
group: pr-${{ github.workflow }}-${{ github.head_ref || github.ref }}

jobs:
check:
uses: ./.github/workflows/check.yml
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ name: Release

on:
push:
paths-ignore:
- website/**
paths-ignore:
- 'website/**'
- '**/*.md'
branches:
- master
workflow_dispatch:
Expand All @@ -29,6 +30,10 @@ on:
env:
GRADLE_OPTS: "-Dorg.gradle.daemon=true"

concurrency:
cancel-in-progress: false
group: release-${{ github.workflow }}-${{ github.head_ref || github.ref }}

jobs:
check:
uses: ./.github/workflows/check.yml
Expand Down Expand Up @@ -69,7 +74,7 @@ jobs:
restore-keys: ${{ runner.os }}-gradle-

- name: Gradle Assemble Dokka
run: ./gradlew dokkaHtml -Pversion=${VERSION//v} --scan
run: ./gradlew dokkaHtmlMultiModule -Pversion=${VERSION//v} --scan

- uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -169,7 +174,7 @@ jobs:
run: |
REPO_NAME=${{ github.repository }}
REPO_NAME=${REPO_NAME#${{ github.repository_owner }}/}
cp -avr build/dokka/html/ public;
cp -avr build/dokka/htmlMultiModule/ public;
find public -type f -regex '.*\.\(htm\|html\|txt\|text\|js\|css\)$' -exec gzip -f -k {} \;
echo "/${REPO_NAME} /${REPO_NAME}/${REPO_NAME}/index.html 301" > public/_redirects;
echo "/${REPO_NAME}/index.html /${REPO_NAME}/${REPO_NAME}/index.html 301" >> public/_redirects;
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/resolve-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:

concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
group: version-${{ github.workflow }}-${{ github.head_ref || github.ref }}

jobs:
resolve:
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# [Redux-Kotlin](https://reduxkotlin.org)

![CI](https://github.com/reduxkotlin/redux-kotlin/workflows/PR/badge.svg)

[![Release](https://github.com/reduxkotlin/redux-kotlin/actions/workflows/release.yml/badge.svg)](https://github.com/reduxkotlin/redux-kotlin/actions/workflows/release.yml)
![badge][badge-android]
![badge][badge-ios]
![badge][badge-native]
Expand All @@ -10,6 +9,10 @@
![badge][badge-linux]
![badge][badge-windows]
![badge][badge-mac]
[![Slack chat](https://img.shields.io/badge/kotlinlang-%23redux-green?logo=slack&style=flat-square)](https://kotlinlang.slack.com/archives/C8A8G5F9Q)
[![Dokka docs](https://img.shields.io/badge/docs-dokka-orange?style=flat-square&logo=kotlin)](http://reduxkotlin.github.io/redux-kotlin)
[![Version maven-central](https://img.shields.io/maven-central/v/org.reduxkotlin/redux-kotlin?logo=apache-maven&style=flat-square)](https://mvnrepository.com/artifact/org.reduxkotlin/redux-kotlin/latest)
[![Version maven-snapshot](https://img.shields.io/maven-metadata/v?metadataUrl=https%3A%2F%2Foss.sonatype.org%2Fcontent%2Frepositories%2Fsnapshots%2Forg%2Freduxkotlin%2Fredux-kotlin%2Fmaven-metadata.xml&logo=apache-maven&label=maven-snapshot&style=flat-square)](https://oss.sonatype.org/content/repositories/snapshots/org/reduxkotlin/redux-kotlin/)

A redux standard for Kotlin that supports multiplatform projects.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id("convention.common")
id("org.jetbrains.dokka")
id("io.github.gradle-nexus.publish-plugin")
}

Expand Down
Loading