Skip to content

Commit 26e44b6

Browse files
authored
Merge pull request #315 from KiraCore/v0.1.23-rc.7
v0.1.23-rc.7 -> master
2 parents 6bc303d + 804aa06 commit 26e44b6

File tree

12 files changed

+208
-170
lines changed

12 files changed

+208
-170
lines changed

.github/workflows/branch.yml

+16-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Create version branch
1+
name: Create Branches & PRs
22

33
on:
44
push:
@@ -20,25 +20,29 @@ jobs:
2020
- name: Extract branch name on pull request
2121
shell: bash
2222
run: |
23-
chmod -v 777 ./RELEASE.md
24-
RELEASE_VER="$(grep -Fn -m 1 'Release: ' ./RELEASE.md | rev | cut -d ":" -f1 | rev | xargs | tr -dc '[:alnum:]\-\.' || echo '' | xargs)"
25-
echo "RELEASE_VER=$RELEASE_VER" >> $GITHUB_ENV
23+
chmod -v 666 ./RELEASE.md
24+
chmod -Rv 555 ./scripts
25+
RELEASE_VER=$(./scripts/version.sh) && echo "RELEASE_VER=$RELEASE_VER" >> $GITHUB_ENV
26+
REPOSITORY_NAME="${{ github.event.repository.name }}" && echo "REPOSITORY_NAME=$REPOSITORY_NAME" >> $GITHUB_ENV
2627
echo "SOURCE_BRANCH=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
27-
echo "MASTER_REF=$(git ls-remote https://github.com/kiracore/${{ github.event.repository.name }} | head -1 | sed 's/HEAD//')" >> $GITHUB_ENV
28+
echo "MASTER_REF=$(git ls-remote https://github.com/kiracore/$REPOSITORY_NAME | head -1 | sed 's/HEAD//')" >> $GITHUB_ENV
29+
git ls-remote https://github.com/kiracore/$REPOSITORY_NAME | egrep -q "refs/tags/${RELEASE_VER}$" && echo "RELEASE_EXISTS=true" >> $GITHUB_ENV || echo "RELEASE_EXISTS=false" >> $GITHUB_ENV
2830
git show-branch "remotes/origin/$RELEASE_VER" && echo "TARGET_BRANCH_EXISTS=true" >> $GITHUB_ENV || echo "TARGET_BRANCH_EXISTS=false" >> $GITHUB_ENV
2931
- name: Print debug data before publishing
3032
run: |
31-
echo "Source branch: ${{ env.SOURCE_BRANCH }}"
32-
echo " Master ref.: ${{ env.MASTER_REF }}"
33-
echo " Release ver.: ${{ env.RELEASE_VER }}"
34-
echo " Event name: ${{ github.event_name }}"
35-
echo " Repo. name: ${{ github.event.repository.name }}"
36-
echo "Target Exists: ${{ env.TARGET_BRANCH_EXISTS }}"
33+
echo "Repository name: ${{ env.REPOSITORY_NAME }}"
34+
echo " Source branch: ${{ env.SOURCE_BRANCH }}"
35+
echo " Master refer.: ${{ env.MASTER_REF }}"
36+
echo "Release version: ${{ env.RELEASE_VER }}"
37+
echo " Release exists: ${{ env.RELEASE_EXISTS }}"
38+
echo " Event name: ${{ github.event_name }}"
39+
echo " Target Exists: ${{ env.TARGET_BRANCH_EXISTS }}"
3740
# ref.: https://github.com/peterjgrainger/action-create-branch, v2.0.1
3841
- name: Create version branch from master
3942
uses: peterjgrainger/action-create-branch@40d33f921267ca130cbacc770f41fc7c501a420f
4043
if: |
4144
( env.TARGET_BRANCH_EXISTS == false || env.TARGET_BRANCH_EXISTS == 'false' ) &&
45+
( env.RELEASE_EXISTS == false || env.RELEASE_EXISTS == 'false' ) &&
4246
( startsWith(env.RELEASE_VER, 'v') && contains(env.RELEASE_VER, '.') )
4347
env:
4448
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -48,6 +52,7 @@ jobs:
4852
- name: Create PR from feature to version branch
4953
if: |
5054
( env.TARGET_BRANCH_EXISTS == false || env.TARGET_BRANCH_EXISTS == 'false' ) &&
55+
( env.RELEASE_EXISTS == false || env.RELEASE_EXISTS == 'false' ) &&
5156
( startsWith(env.RELEASE_VER, 'v') && contains(env.RELEASE_VER, '.') )
5257
uses: repo-sync/pull-request@5ba2c80b97c87b9174c1548141b7acd80f6376e1
5358
with:

.github/workflows/main.yml

+45-7
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ jobs:
1717
id-token: write
1818
pull-requests: write
1919
steps:
20+
# ref.: https://github.com/sigstore/cosign-installer, v2.1.0
2021
- name: Install cosign
21-
uses: sigstore/cosign-installer@v2.1.0
22+
uses: sigstore/cosign-installer@581838fbedd492d2350a9ecd427a95d6de1e5d01
2223
with:
2324
cosign-release: 'v1.6.0'
2425
# ref.: https://github.com/actions/checkout, v3.0.0
@@ -59,11 +60,40 @@ jobs:
5960
uses: actions/download-artifact@v3.0.0
6061
with:
6162
name: sekai-src
62-
- name: Testing SEKAI
63+
- name: Extract branch name on push
64+
if: github.event_name == 'push'
65+
shell: bash
66+
run: |
67+
echo "SOURCE_BRANCH=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
68+
echo "DESTINATION_BRANCH=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
69+
- name: Extract branch name on pull request
70+
if: github.event_name == 'pull_request'
71+
env:
72+
REF_BRANCH: ${{ github.event.pull_request.head.ref }}
73+
BASE_REF_BRANCH: ${{ github.base_ref }}
74+
shell: bash
75+
run: |
76+
echo "SOURCE_BRANCH=$(echo ${{ env.REF_BRANCH }})" >> $GITHUB_ENV
77+
echo "DESTINATION_BRANCH=$(echo ${{ env.BASE_REF_BRANCH }})" >> $GITHUB_ENV
78+
- name: Inspecting & organizing artifacts
6379
run: |
6480
echo "(current dir): $PWD" && ls -l ./
6581
tar xvf ./src.tar.gz
6682
chmod -Rv 555 ./scripts
83+
REPOSITORY_NAME="${{ github.event.repository.name }}" && echo "REPOSITORY_NAME=$REPOSITORY_NAME" >> $GITHUB_ENV
84+
RELEASE_VER=$(./scripts/version.sh) && echo "RELEASE_VER=$RELEASE_VER" >> $GITHUB_ENV
85+
echo "RELEASE_VER=$RELEASE_VER" >> $GITHUB_ENV
86+
git ls-remote https://github.com/kiracore/$REPOSITORY_NAME | egrep -q "refs/tags/${RELEASE_VER}$" && echo "RELEASE_EXISTS=true" >> $GITHUB_ENV || echo "RELEASE_EXISTS=false" >> $GITHUB_ENV
87+
- name: Print debug data before testing
88+
run: |
89+
echo " Source branch: ${{ env.SOURCE_BRANCH }}"
90+
echo "Destination branch: ${{ env.DESTINATION_BRANCH }}"
91+
echo " Event name: ${{ github.event_name }}"
92+
echo " Repository name: ${{ env.REPOSITORY_NAME }}"
93+
echo " Release version: ${{ env.RELEASE_VER }}"
94+
echo " Release exists: ${{ env.RELEASE_EXISTS }}"
95+
- name: Testing SEKAI
96+
run: |
6797
make test
6898
make install
6999
sekaid version
@@ -76,6 +106,7 @@ jobs:
76106
cp -fv ./RELEASE.md ./bin/RELEASE.md
77107
chmod -Rv 777 ./bin
78108
echo -e "\n\r\n\r\`\`\`" >> ./bin/RELEASE.md
109+
echo -e " Release Versions: $RELEASE_VER\n\r" >> ./bin/RELEASE.md
79110
echo " sekai-darwin-amd64.deb: sha256:$(sha256sum ./bin/sekai-darwin-amd64.deb | awk '{ print $1 }')" >> ./bin/RELEASE.md
80111
echo " sekai-darwin-arm64.deb: sha256:$(sha256sum ./bin/sekai-darwin-arm64.deb | awk '{ print $1 }')" >> ./bin/RELEASE.md
81112
echo " sekai-linux-amd64.deb: sha256:$(sha256sum ./bin/sekai-linux-amd64.deb | awk '{ print $1 }')" >> ./bin/RELEASE.md
@@ -109,7 +140,9 @@ jobs:
109140
echo "(current dir): $PWD" && ls -l ./
110141
tar xvf ./deb.tar.gz
111142
chmod -Rv 777 ./
112-
echo "RELEASE_VER=$(grep -Fn -m 1 'Release: ' ./RELEASE.md | rev | cut -d ":" -f1 | rev | xargs | tr -dc '[:alnum:]\-\.' || echo '')" >> $GITHUB_ENV
143+
RELEASE_VER=$(cat ./RELEASE.md | tac | grep -Fn -m 1 'Release Versions: ' | rev | cut -d ":" -f1 | rev | xargs | tr -dc '[:alnum:]\-\.' || echo '')
144+
echo "RELEASE_VER=$RELEASE_VER" >> $GITHUB_ENV
145+
git ls-remote https://github.com/kiracore/${{ github.event.repository.name }} | egrep -q "refs/tags/${RELEASE_VER}$" && echo "RELEASE_EXISTS=true" >> $GITHUB_ENV || echo "RELEASE_EXISTS=false" >> $GITHUB_ENV
113146
# Branch name is also a version of the release
114147
# ref: https://stackoverflow.com/questions/58033366/how-to-get-the-current-branch-within-github-actions
115148
- name: Extract branch name on push
@@ -129,10 +162,11 @@ jobs:
129162
echo "DESTINATION_BRANCH=$(echo ${{ env.BASE_REF_BRANCH }} | tr / -)" >> $GITHUB_ENV
130163
- name: Print debug data before publishing
131164
run: |
132-
echo "Source branch: ${{ env.SOURCE_BRANCH }}"
133-
echo " Dest. branch: ${{ env.DESTINATION_BRANCH }}"
134-
echo " Event name: ${{ github.event_name }}"
135-
echo " Release ver.: ${{ env.RELEASE_VER }}"
165+
echo " Source branch: ${{ env.SOURCE_BRANCH }}"
166+
echo "Destination branch: ${{ env.DESTINATION_BRANCH }}"
167+
echo " Event name: ${{ github.event_name }}"
168+
echo " Release version: ${{ env.RELEASE_VER }}"
169+
echo " Release exists: ${{ env.RELEASE_EXISTS }}"
136170
- name: Reject on error
137171
# ref.: https://github.com/andrewslotin/rummelsnuff, v1.1.0
138172
uses: andrewslotin/rummelsnuff@a0c9c1929f44eefff922aced1ee4dd64eddf12d6
@@ -146,6 +180,7 @@ jobs:
146180
- name: Publish release
147181
if: |
148182
github.event_name == 'push' &&
183+
( env.RELEASE_EXISTS == false || env.RELEASE_EXISTS == 'false' ) &&
149184
( startsWith(env.SOURCE_BRANCH, 'v') && contains(env.SOURCE_BRANCH, '.') && !contains(env.SOURCE_BRANCH, 'rc') && !contains(env.SOURCE_BRANCH, '-') )
150185
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5
151186
with:
@@ -168,6 +203,7 @@ jobs:
168203
- name: Publish pre-release
169204
if: |
170205
github.event_name == 'push' &&
206+
( env.RELEASE_EXISTS == false || env.RELEASE_EXISTS == 'false' ) &&
171207
( startsWith(env.SOURCE_BRANCH, 'v') && contains(env.SOURCE_BRANCH, '.') && contains(env.SOURCE_BRANCH, '-') )
172208
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5
173209
with:
@@ -186,10 +222,12 @@ jobs:
186222
./sekai-windows-arm64.exe
187223
./sekai-utils.sh
188224
# ref.: https://github.com/hmarr/auto-approve-action, v2.1.0
225+
# Do NOT approve IF release exists and the source branch is NOT a version branch
189226
- name: Approve pull request on success
190227
uses: hmarr/auto-approve-action@5d04a5ca6da9aeb8ca9f31a5239b96fc3e003029
191228
if: |
192229
( github.event_name == 'pull_request' ) &&
230+
(( env.RELEASE_EXISTS == false || env.RELEASE_EXISTS == 'false' ) || env.SOURCE_BRANCH == env.RELEASE_VER) &&
193231
( env.SOURCE_BRANCH == env.RELEASE_VER || env.DESTINATION_BRANCH == env.RELEASE_VER )
194232
with:
195233
github-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/master.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches: [ v*.*.* ]
66

7-
# git ls-remote <URL> | head -1 | sed "s/HEAD//"
87
jobs:
98
# isolate signing & repo cloning from docker image
109
auto-pr:
@@ -29,7 +28,7 @@ jobs:
2928
- name: Checkout repository
3029
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
3130
- name: Create PR from a version branch to master after version branch push
32-
if: startsWith(env.SOURCE_BRANCH, 'v') && contains(env.SOURCE_BRANCH, '.') && !contains(env.SOURCE_BRANCH, '-') && !contains(env.SOURCE_BRANCH, 'rc')
31+
if: startsWith(env.SOURCE_BRANCH, 'v') && contains(env.SOURCE_BRANCH, '.')
3332
uses: repo-sync/pull-request@5ba2c80b97c87b9174c1548141b7acd80f6376e1
3433
with:
3534
github_token: ${{ secrets.REPO_ACCESS }}

.github/workflows/spam.yml

+42-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Clean spam PRs
1+
name: Clean Spam PRs
22

33
on:
44
pull_request:
@@ -26,13 +26,16 @@ jobs:
2626
- name: Extract branch name & release version
2727
shell: bash
2828
run: |
29-
echo "RELEASE_VER=$(grep -Fn -m 1 'Release: ' ./RELEASE.md | rev | cut -d ":" -f1 | rev | xargs | tr -dc '[:alnum:]\-\.' || echo '')" >> $GITHUB_ENV
29+
chmod -Rv 555 ./scripts
30+
RELEASE_VER=$(./scripts/version.sh) && echo "RELEASE_VER=$RELEASE_VER" >> $GITHUB_ENV
3031
echo "SOURCE_BRANCH=$(echo ${{ env.REF_BRANCH }} | tr / -)" >> $GITHUB_ENV
3132
echo "DESTINATION_BRANCH=$(echo ${{ env.BASE_REF_BRANCH }} | tr / -)" >> $GITHUB_ENV
33+
git ls-remote https://github.com/kiracore/${{ github.event.repository.name }} | egrep -q "refs/tags/${RELEASE_VER}$" && echo "RELEASE_EXISTS=true" >> $GITHUB_ENV || echo "RELEASE_EXISTS=false" >> $GITHUB_ENV
3234
- name: Print debug data before publishing
3335
run: |
34-
echo "Source branch name: ${{ env.SOURCE_BRANCH }}"
35-
echo "Destination branch name: ${{ env.DESTINATION_BRANCH }}"
36+
echo " Source branch: ${{ env.SOURCE_BRANCH }}"
37+
echo "Destination branch: ${{ env.DESTINATION_BRANCH }}"
38+
echo " Release exists: ${{ env.RELEASE_EXISTS }}"
3639
- name: Reject invalid PRs to master, dev or latest
3740
# ref.: https://github.com/dessant/repo-lockdown
3841
uses: dessant/repo-lockdown@0b093279a77b44bbc38e85089b5463dd06b4aea4
@@ -42,8 +45,12 @@ jobs:
4245
with:
4346
pr-labels: 'invalid'
4447
pr-comment: >
45-
This repository does not accept pull requests from non version branches
46-
close-pr: true
48+
This repository does not accept pull requests from non version branches.
49+
50+
--- Please CLOSE this PR after acknowledging the issue ---
51+
close-pr: false
52+
lock-pr: true
53+
pr-lock-reason: 'spam'
4754
- name: Reject invalid PRs to version branches that do NOT originate from feature/* or debug/*
4855
# ref.: https://github.com/dessant/repo-lockdown
4956
uses: dessant/repo-lockdown@0b093279a77b44bbc38e85089b5463dd06b4aea4
@@ -53,9 +60,13 @@ jobs:
5360
with:
5461
pr-labels: 'invalid'
5562
pr-comment: >
56-
This repository does not accept pull requests from feature/* & bugfix/* branches
57-
close-pr: true
58-
- name: Reject invalid PRs to version branches with invalid RELEASE files
63+
This repository does not accept pull requests from feature/* & bugfix/* branches.
64+
65+
--- Please CLOSE this PR after acknowledging the issue ---
66+
close-pr: false
67+
lock-pr: true
68+
pr-lock-reason: 'spam'
69+
- name: Reject PRs to version branches with invalid RELEASE files
5970
# ref.: https://github.com/dessant/repo-lockdown
6071
uses: dessant/repo-lockdown@0b093279a77b44bbc38e85089b5463dd06b4aea4
6172
if: |
@@ -64,5 +75,25 @@ jobs:
6475
with:
6576
pr-labels: 'invalid'
6677
pr-comment: >
67-
The release version (${{ env.RELEASE_VER }}) in the ./RELEASE.md file does NOT match the branch name (${{ env.DESTINATION_BRANCH }})
68-
close-pr: false
78+
The release version (${{ env.RELEASE_VER }}) does NOT match the branch name (${{ env.DESTINATION_BRANCH }}).
79+
80+
--- Please CLOSE this PR after acknowledging the issue ---
81+
close-pr: false
82+
lock-pr: true
83+
pr-lock-reason: 'spam'
84+
- name: Reject PRs to version branches, with were already released
85+
# ref.: https://github.com/dessant/repo-lockdown
86+
uses: dessant/repo-lockdown@0b093279a77b44bbc38e85089b5463dd06b4aea4
87+
if: |
88+
( startsWith(env.DESTINATION_BRANCH, 'v') && contains(env.DESTINATION_BRANCH, '.') ) &&
89+
( env.RELEASE_EXISTS == true || env.RELEASE_EXISTS == 'true' )
90+
with:
91+
pr-labels: 'invalid'
92+
pr-comment: >
93+
Version (${{ env.RELEASE_VER }}) was already released!
94+
It is NOT allowed to create PRs to version branches which were already released.
95+
96+
--- Please CLOSE this PR after acknowledging the issue ---
97+
close-pr: false
98+
lock-pr: true
99+
pr-lock-reason: 'spam'

.github/workflows/test.yml

-21
This file was deleted.

RELEASE.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## KIRA Blockchain Application - SEKAI
22

3-
Release: `v0.1.23-rc.4`
4-
53
**Features:**
6-
* Added Integration Tests: `network-setup`
4+
5+
- Improved workflows to ensure consistency of releases
6+
- Added `version.sh` script to get SekiVersion variable consistently
7+
- Removed need to update release version in the `RELEASE.md` file

scripts/build.sh

+6-23
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,12 @@ PLATFORM="$1" && [ -z "$PLATFORM" ] && PLATFORM="$LOCAL_PLATFORM"
1111
ARCH="$2" && [ -z "$ARCH" ] && ARCH="$LOCAL_ARCH"
1212
OUTPUT="$3" && [ -z "$OUTPUT" ] && OUTPUT="$LOCAL_OUT"
1313
14-
CONSTANS_FILE=./types/constants.go
15-
VERSION=$(grep -Fn -m 1 'SekaiVersion ' $CONSTANS_FILE | rev | cut -d "=" -f1 | rev | xargs | tr -dc '[:alnum:]\-\.' || echo '')
16-
($(isNullOrEmpty "$VERSION")) && ( echoErr "ERROR: SekaiVersion was NOT found in contants '$CONSTANS_FILE' !" && sleep 5 && exit 1 )
17-
18-
RELEASE_FILE=./RELEASE.md
19-
RELEASE_VERSION=$(grep -Fn -m 1 'Release: ' $RELEASE_FILE | rev | cut -d ":" -f1 | rev | xargs | tr -dc '[:alnum:]\-\.' || echo '')
20-
RELEASE_LINE_NR=$(getFirstLineByPrefix "Release:" $RELEASE_FILE)
21-
22-
# If release file is not present or release version is NOT defined then create RELEASE.md or append the Release version
23-
if ($(isNullOrEmpty "$RELEASE_VERSION")) || [ ! -f $RELEASE_FILE ] || [ $RELEASE_LINE_NR -le 0 ] ; then
24-
touch $RELEASE_FILE
25-
echo -e "\n\rRelease: \`$VERSION\`" >> $RELEASE_FILE
26-
# Otherwsie replace release with the number defined by the constants file
27-
else
28-
RELEASE_LINE_NR=$(getFirstLineByPrefix "Release:" $RELEASE_FILE)
29-
setLineByNumber $RELEASE_LINE_NR "Release: \`$VERSION\`" $RELEASE_FILE
30-
fi
31-
32-
COMMIT=$(git log -1 --format='%H') && \
33-
ldfName="-X github.com/cosmos/cosmos-sdk/version.Name=sekai" && \
34-
ldfAppName="-X github.com/cosmos/cosmos-sdk/version.AppName=sekaid" && \
35-
ldfVersion="-X github.com/cosmos/cosmos-sdk/version.Version=$VERSION" && \
36-
ldfCommit="-X github.com/cosmos/cosmos-sdk/version.Commit=$COMMIT" && \
14+
VERSION=$(./scripts/version.sh)
15+
COMMIT=$(git log -1 --format='%H')
16+
ldfName="-X github.com/cosmos/cosmos-sdk/version.Name=sekai"
17+
ldfAppName="-X github.com/cosmos/cosmos-sdk/version.AppName=sekaid"
18+
ldfVersion="-X github.com/cosmos/cosmos-sdk/version.Version=$VERSION"
19+
ldfCommit="-X github.com/cosmos/cosmos-sdk/version.Commit=$COMMIT"
3720
ldfBuildTags="-X github.com/cosmos/cosmos-sdk/version.BuildTags=${PLATFORM},${ARCH}"
3821
3922
rm -fv "$OUTPUT" || echo "ERROR: Failed to wipe old sekaid binary"

scripts/publish.sh

+5-11
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ set -e
33
set -x
44
. /etc/profile
55

6-
go mod tidy
7-
GO111MODULE=on go mod verify
8-
9-
PKG_CONFIG_FILE=./nfpm.yaml
6+
PKG_CONFIG_FILE=./nfpm.yaml
7+
VERSION=$(./scripts/version.sh)
108

119
function pcgConfigure() {
1210
local ARCH="$1"
@@ -21,13 +19,6 @@ function pcgConfigure() {
2119
sed -i"" "s/\${SOURCE}/$SOURCE/" $CONFIG
2220
}
2321

24-
BRANCH=$(git rev-parse --symbolic-full-name --abbrev-ref HEAD || echo "???")
25-
echoInfo "INFO: Reading SekaiVersion from constans file, branch $BRANCH"
26-
27-
CONSTANS_FILE=./types/constants.go
28-
VERSION=$(grep -Fn -m 1 'SekaiVersion ' $CONSTANS_FILE | rev | cut -d "=" -f1 | rev | xargs | tr -dc '[:alnum:]\-\.' || echo '')
29-
($(isNullOrEmpty "$VERSION")) && ( echoErr "ERROR: SekaiVersion was NOT found in contants '$CONSTANS_FILE' !" && sleep 5 && exit 1 )
30-
3122
function pcgRelease() {
3223
local ARCH="$1" && ARCH=$(echo "$ARCH" | tr '[:upper:]' '[:lower:]' )
3324
local VERSION="$2" && VERSION=$(echo "$VERSION" | tr '[:upper:]' '[:lower:]' )
@@ -59,6 +50,9 @@ function pcgRelease() {
5950

6051
rm -rfv ./bin
6152

53+
go mod tidy
54+
GO111MODULE=on go mod verify
55+
6256
# NOTE: To see available build architectures, run: go tool dist list
6357
pcgRelease "amd64" "$VERSION" "linux"
6458
pcgRelease "amd64" "$VERSION" "darwin"

0 commit comments

Comments
 (0)