mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-14 07:08:06 +00:00
updating release
This commit is contained in:
parent
b3efcdc202
commit
79867473d5
13
compare.sh
13
compare.sh
@ -1,13 +0,0 @@
|
|||||||
GREEN='\033[0;32m'
|
|
||||||
NC='\033[0m'
|
|
||||||
|
|
||||||
echo "${GREEN}---Old---${NC}"
|
|
||||||
yq $@ > /tmp/yq-old-output
|
|
||||||
cat /tmp/yq-old-output
|
|
||||||
|
|
||||||
echo "${GREEN}---New---${NC}"
|
|
||||||
./yq $@ > /tmp/yq-new-output
|
|
||||||
cat /tmp/yq-new-output
|
|
||||||
|
|
||||||
echo "${GREEN}---Diff---${NC}"
|
|
||||||
colordiff /tmp/yq-old-output /tmp/yq-new-output
|
|
@ -8,7 +8,8 @@
|
|||||||
- make local xcompile (builds binaries for all platforms)
|
- make local xcompile (builds binaries for all platforms)
|
||||||
|
|
||||||
- git release
|
- git release
|
||||||
./scripts/publish.sh
|
./scripts/release.sh
|
||||||
|
./scripts/upload.sh
|
||||||
|
|
||||||
- snapcraft
|
- snapcraft
|
||||||
- will auto create a candidate, test it works then promote
|
- will auto create a candidate, test it works then promote
|
||||||
|
21
scripts/release.sh
Executable file
21
scripts/release.sh
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -ex
|
||||||
|
GITHUB_TOKEN="${GITHUB_TOKEN:?missing required input \'GITHUB_TOKEN\'}"
|
||||||
|
|
||||||
|
CURRENT="$(git describe --tags --abbrev=0)"
|
||||||
|
PREVIOUS="$(git describe --tags --abbrev=0 --always "${CURRENT}"^)"
|
||||||
|
OWNER="mikefarah"
|
||||||
|
REPO="yq"
|
||||||
|
|
||||||
|
release() {
|
||||||
|
github-release release \
|
||||||
|
--user "$OWNER" \
|
||||||
|
--draft \
|
||||||
|
--repo "$REPO" \
|
||||||
|
--tag "$CURRENT"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
release
|
||||||
|
|
@ -7,14 +7,6 @@ PREVIOUS="$(git describe --tags --abbrev=0 --always "${CURRENT}"^)"
|
|||||||
OWNER="mikefarah"
|
OWNER="mikefarah"
|
||||||
REPO="yq"
|
REPO="yq"
|
||||||
|
|
||||||
release() {
|
|
||||||
github-release release \
|
|
||||||
--user "$OWNER" \
|
|
||||||
--draft \
|
|
||||||
--repo "$REPO" \
|
|
||||||
--tag "$CURRENT"
|
|
||||||
}
|
|
||||||
|
|
||||||
upload() {
|
upload() {
|
||||||
mkdir -p ./build-done
|
mkdir -p ./build-done
|
||||||
while IFS= read -r -d $'\0'; do
|
while IFS= read -r -d $'\0'; do
|
||||||
@ -32,5 +24,5 @@ upload() {
|
|||||||
done < <(find ./build -mindepth 1 -maxdepth 1 -print0)
|
done < <(find ./build -mindepth 1 -maxdepth 1 -print0)
|
||||||
}
|
}
|
||||||
|
|
||||||
# release
|
|
||||||
upload
|
upload
|
@ -1,5 +1,5 @@
|
|||||||
name: yq
|
name: yq
|
||||||
version: '3.4.0'
|
version: '4.0.0-alpha1'
|
||||||
summary: A lightweight and portable command-line YAML processor
|
summary: A lightweight and portable command-line YAML processor
|
||||||
description: |
|
description: |
|
||||||
The aim of the project is to be the jq or sed of yaml files.
|
The aim of the project is to be the jq or sed of yaml files.
|
||||||
|
Loading…
Reference in New Issue
Block a user