Skip to content

Commit 4fbdd2e

Browse files
committed
Fix GitHub Actions configs
Better cache key and just run the publish on all tags, it'll be our responsibility to keep the tag in the right format. GitHub Actions don't have a great way to really handle that since they don't support regex.
1 parent 5977958 commit 4fbdd2e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Publish Plugin
22
on:
33
push:
44
tags:
5-
- '[0-9].[0-9].[0-9]-[0-9][0-9][0-9][0-9].[1-3]'
5+
- '*'
66

77
jobs:
88
publish:
@@ -20,7 +20,7 @@ jobs:
2020
~/.gradle/jdks
2121
~/.gradle/native
2222
~/.gradle/wrapper
23-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('gradle.properties') }}
23+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', 'gradle/**', 'gradle.properties') }}
2424
restore-keys: |
2525
${{ runner.os }}-gradle-
2626
- name: Setup publish token

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
~/.gradle/jdks
2828
~/.gradle/native
2929
~/.gradle/wrapper
30-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('gradle.properties') }}
30+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', 'gradle/**', 'gradle.properties') }}
3131
restore-keys: |
3232
${{ runner.os }}-gradle-
3333
- run: ./gradlew build --no-daemon --stacktrace

0 commit comments

Comments
 (0)