mirror of
https://github.com/gradle/actions
synced 2024-12-17 21:52:21 +00:00
500e0ee5b3
The setup-gradle action tries to get a short-lived access token given the supplied Develocity access key. This key can be passed either with the `DEVELOCITY_ACCESS_KEY` env var or via the `develocity-access-key` input parameter. If a token can be retrieved, then the `DEVELOCITY_ACCESS_KEY` env var will be set to the token. Otherwise the `DEVELOCITY_ACCESS_KEY` will be set to a blank string, to avoid a leak. --------- Co-authored-by: daz <daz@gradle.com>
35 lines
626 B
Bash
Executable file
35 lines
626 B
Bash
Executable file
#!/bin/bash
|
|
|
|
cd sources
|
|
|
|
case "$1" in
|
|
all)
|
|
npm clean-install
|
|
npm run all
|
|
;;
|
|
act)
|
|
# Build and copy outputs to the dist directory
|
|
npm install
|
|
npm run build
|
|
cd ..
|
|
cp -r sources/dist .
|
|
# Run act
|
|
$@
|
|
# Revert the changes to the dist directory
|
|
git checkout -- dist
|
|
;;
|
|
init-scripts)
|
|
cd test/init-scripts
|
|
./gradlew check
|
|
;;
|
|
dist)
|
|
npm install
|
|
npm run build
|
|
cd ..
|
|
cp -r sources/dist .
|
|
;;
|
|
*)
|
|
npm install
|
|
npm run build
|
|
;;
|
|
esac
|