summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2022-03-24 12:22:07 +0800
committerMatt Johnston <matt@ucc.asn.au>2022-03-24 12:22:07 +0800
commitbffbfba98bd2d0b687988e2984aad3291728bbb1 (patch)
tree053be4527d0791777e44bbf38063001885c26eac /.github
parentfbf7757c49ce6b39553cc77ecc386b3ae94e8e21 (diff)
downloaddropbear-bffbfba98bd2d0b687988e2984aad3291728bbb1.tar.gz
Add release.sh --testrel, github action
This makes github actions create a tarball sha256sum for comparison. The release.sh script now works in a git repository too.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/tarball.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/tarball.yml b/.github/workflows/tarball.yml
new file mode 100644
index 0000000..ea72137
--- /dev/null
+++ b/.github/workflows/tarball.yml
@@ -0,0 +1,36 @@
+name: tarball sha256sum
+on:
+ push:
+ branches:
+ - master
+jobs:
+ tarball:
+ runs-on: 'ubuntu-20.04'
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: release.sh
+ run: ./release.sh --testrel | tee log1.txt
+
+ - name: extract output
+ run: |
+ grep ^SHA256 log1.txt > sha256sum.txt
+ sed 's/.*= *//' < sha256sum.txt > hash.txt
+ mv `tail -n1 log1.txt` rel.tar.bz2
+
+ - name: sha256sum
+ uses: actions/upload-artifact@v3
+ with:
+ name: sha256sum
+ path: |
+ sha256sum.txt
+ hash.txt
+
+ - name: tarball
+ # only keep for debugging
+ retention-days: 3
+ uses: actions/upload-artifact@v3
+ with:
+ name: tarball
+ path: rel.tar.bz2