-
Notifications
You must be signed in to change notification settings - Fork 23
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
bfeafca
commit d8ef718
Showing
6 changed files
with
61 additions
and
17 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,36 @@ | ||
name: Experimental Release | ||
on: | ||
push: | ||
tags: [ "*-experimental" ] | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
cache: gradle | ||
# See note about QEMU and binfmt requirement here https://github.com/vercel/pkg#targets | ||
- name: Set up QEMU | ||
id: qemu | ||
uses: docker/setup-qemu-action@v3 | ||
with: | ||
image: tonistiigi/binfmt:latest | ||
platforms: all | ||
- name: Gradle Wrapper Validation | ||
uses: gradle/wrapper-validation-action@v3 | ||
- run: yarn global add [email protected] | ||
- run: | | ||
echo "RELEASE_VERSION=$(./scripts/version-from-git-tag.sh)" >> $GITHUB_ENV | ||
- run: echo "Publishing version $RELEASE_VERSION" | ||
- name: Publish experimental version | ||
run: | | ||
echo "Publishing experimental version ${RELEASE_VERSION}-experimental" | ||
./gradlew "-PpluginVersion=${RELEASE_VERSION}-experimental" publishPlugin | ||
env: | ||
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }} |
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,7 +1,7 @@ | ||
name: Nightly Release | ||
on: | ||
push: | ||
tags: [ "*" ] | ||
tags: [ "*-nightly" ] | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
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
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,9 +1,9 @@ | ||
#!/usr/bin/env bash | ||
set -eu | ||
VERSION="$(git describe --tags | sed 's/^v//')" | ||
if ! [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-nightly)?$ ]]; then | ||
VERSION="$(git describe --tags | sed 's/^v//' | sed 's/-nightly//' | sed 's/-experimental//')" | ||
if ! [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
echo "Version $VERSION does not match semver pattern MAJOR.MINOR.PATCH where each part is a number" | ||
echo "To fix this problem, make sure you are running this script with a non-dirty work tree and that HEAD points to a commit that has an associated git tag using the format vMAJOR.MINOR.PATCH" | ||
exit 1 | ||
fi | ||
echo $VERSION | ||
echo $VERSION |
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