File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 2525 run : |
2626 cd /tmp/
2727
28+ RELEASE_DATE="$(date '+%Y%m%d')"
29+ RELEASE_FILE="/tmp/medium.rip/medium.rip"
30+ HASH_VALUE="/tmp/medium.rip.sha256"
31+ echo "RELEASE_DATE=$RELEASE_DATE" >> $GITHUB_ENV
32+ echo "HASH_VALUE=$HASH_VALUE" >> $GITHUB_ENV
33+ echo "RELEASE_FILE=$RELEASE_FILE" >> $GITHUB_ENV
34+
2835 PNPM_BIN="/home/runner/.local/share/pnpm/pnpm"
2936 #git clone "https://github.com/SphericalKat/medium.rip.git"
3037 git clone "https://github.com/mycodedoesnotcompile2/medium.rip.git"
3946 go mod download
4047 go build -ldflags='-w -s -extldflags "-static"' .
4148
42- ls -alh medium.rip && file medium.rip
43-
49+ ls -alh $RELEASE_FILE && file $RELEASE_FILE && chmod o+x $RELEASE_FILE
50+ sha256sum --tag $RELEASE_FILE | tee -a $HASH_VALUE
51+
52+ - name : Create a new Github release
53+ uses : softprops/action-gh-release@v2
54+ with :
55+ body_path : ${{ env.HASH_VALUE }}
56+ name : ${{ env.RELEASE_DATE }}
57+ tag_name : ${{ env.RELEASE_DATE }}
58+ files : |
59+ ${{ env.RELEASE_FILE }}
4460
4561
You can’t perform that action at this time.
0 commit comments