mirror of
https://github.com/julia-actions/setup-julia.git
synced 2026-02-17 21:46:54 +08:00
Delete scripts
This commit is contained in:
@@ -1,44 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
branch_name="$(git symbolic-ref --short -q HEAD)"
|
|
||||||
version="v$(jq -r .version package.json)"
|
|
||||||
repo="$1"
|
|
||||||
|
|
||||||
if [ -z "$repo" ]; then
|
|
||||||
echo "ERROR: must specify repository"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "=== debug info ==="
|
|
||||||
echo "branch: $branch_name"
|
|
||||||
echo "version: $version"
|
|
||||||
echo "repo: $repo"
|
|
||||||
echo "=================="
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
# Check that the version doesn't exist yet
|
|
||||||
version_exists="$(curl -s https://api.github.com/repos/"$repo"/tags -H "Accept: application/vnd.github.v3.full+json" | jq -r '.[] | select(.name == "'"$version"'") | .name')"
|
|
||||||
if [ -n "$version_exists" ]; then
|
|
||||||
echo "ERROR: version $version already exists"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
git checkout -b releases/"$version"
|
|
||||||
|
|
||||||
npm install
|
|
||||||
npm run build
|
|
||||||
npm test
|
|
||||||
npm run pack
|
|
||||||
|
|
||||||
sed -i 's/dist/!dist/g' .gitignore
|
|
||||||
git add dist
|
|
||||||
git commit -a -m "Add production dependencies & build"
|
|
||||||
|
|
||||||
# Tags
|
|
||||||
major_minor="$(sed 's/\.[^.]*$//' <<< "$version")"
|
|
||||||
major="$(sed 's/\.[^.]*$//' <<< "$major_minor")"
|
|
||||||
|
|
||||||
git tag "$version"
|
|
||||||
git tag -f "$major_minor"
|
|
||||||
git tag -f "$major"
|
|
||||||
git tag -f "latest"
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
branch_name="$(git symbolic-ref --short -q HEAD)"
|
|
||||||
version="v$(jq -r .version package.json)"
|
|
||||||
repo="$1"
|
|
||||||
|
|
||||||
if [ -z "$repo" ]; then
|
|
||||||
echo "ERROR: must specify repository"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "=== debug info ==="
|
|
||||||
echo "branch: $branch_name"
|
|
||||||
echo "version: $version"
|
|
||||||
echo "repo: $repo"
|
|
||||||
echo "=================="
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
# Check that the version doesn't exist yet
|
|
||||||
version_exists="$(curl -s https://api.github.com/repos/"$repo"/tags -H "Accept: application/vnd.github.v3.full+json" | jq -r '.[] | select(.name == "'"$version"'") | .name')"
|
|
||||||
if [ -n "$version_exists" ]; then
|
|
||||||
echo "ERROR: version $version already exists"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
git checkout -B test/"$branch_name"/releases/"$version"
|
|
||||||
|
|
||||||
npm install
|
|
||||||
npm run build
|
|
||||||
npm test
|
|
||||||
npm run pack
|
|
||||||
|
|
||||||
# Add dist/ to git and commit it
|
|
||||||
sed -i 's/dist/!dist/g' .gitignore
|
|
||||||
git add dist
|
|
||||||
git commit -a -m "Add production dependencies & build"
|
|
||||||
Reference in New Issue
Block a user