Skip to content

Commit 377b0ae

Browse files
committed
Adding first install.sh version
1 parent ee00306 commit 377b0ae

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

install.sh

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/bash
2+
3+
RELEASE_VERSION=0.1
4+
PSCALE_CLI_HELPER_SCRIPTS_NAME=pscale-cli-helper-scripts
5+
PSCALE_SCRIPTS_DIR=.pscale/
6+
7+
curl -L -o ${PSCALE_CLI_HELPER_SCRIPTS_NAME}.zip https://github.com/jonico/pscale-cli-helper-scripts/archive/refs/tags/${RELEASE_VERSION}.zip
8+
unzip ${PSCALE_CLI_HELPER_SCRIPTS_NAME}.zip
9+
10+
# create .pscale directory
11+
mkdir -p ${PSCALE_SCRIPTS_DIR}
12+
13+
# copy scripts to .pscale directory
14+
cp -r ${PSCALE_CLI_HELPER_SCRIPTS_NAME}-${RELEASE_VERSION}/.pscale/cli-helper-scripts ${PSCALE_SCRIPTS_DIR}/
15+
16+
# create .github/workflows directory
17+
mkdir -p .github/workflows
18+
19+
# copy workflow to .github/workflows directory
20+
cp ${PSCALE_CLI_HELPER_SCRIPTS_NAME}-${RELEASE_VERSION}/.github/workflows/*.yml .github/workflows/
21+
22+
# remove zip file and extracted directory
23+
rm ${PSCALE_CLI_HELPER_SCRIPTS_NAME}.zip
24+
rm -rf ${PSCALE_CLI_HELPER_SCRIPTS_NAME}-${RELEASE_VERSION}
25+
26+
echo
27+
echo "Successfully installed pscale-cli-helper-scripts"
28+
echo
29+
echo "Please run 'git add .pscale .github/workflows' and commit changes using 'git commit -m \"Add pscale helper scripts and IssueOps workflows\"'"
30+
echo "Then run 'git push' to push changes"
31+
32+
33+
34+
35+
36+
37+

0 commit comments

Comments
 (0)