M .builds/debian-stable.yml => .builds/debian-stable.yml +14 -8
@@ 38,21 38,27 @@ tasks:
- test: |
cd snippetexpander
xvfb-run make test
+ - tgz: |
+ # Add wails to PATH.
+ export PATH="$PATH:$HOME/go/bin"
+ cd snippetexpander
+ make tgz
+ - tgz-upload: |
+ cd snippetexpander
+ cp snippetexpander.tgz ../
+ SE_TAG="$(git describe --abbrev=0)"
+ [[ -n "$SE_TAG" ]] && cp snippetexpander.tgz "snippetexpander-$SE_TAG.tgz" && hut git artifact upload "snippetexpander-$SE_TAG.tgz" --rev "$SE_TAG" || echo "No matching tag to add tgz to."
- deb: |
# Add wails to PATH.
export PATH="$PATH:$HOME/go/bin"
cd snippetexpander
make deb
+ - deb-upload: |
+ cp snippetexpander_*_amd64.deb snippetexpander_amd64.deb
+ cd snippetexpander
SE_TAG="$(git describe --abbrev=0)"
SE_TAG_DEB=v"$(ls ../snippetexpander_*.*.*-*_amd64.deb | cut -d '_' -f 2 | cut -d '-' -f 1)"
[[ -n "$SE_TAG" ]] && [[ -n "$SE_TAG_DEB" ]] && [[ "$SE_TAG" = "$SE_TAG_DEB" ]] && hut git artifact upload ../snippetexpander_*.*.*-*_amd64.deb --rev "$SE_TAG" || echo "No matching tag to add deb to."
- cd ../
- cp snippetexpander_*_amd64.deb snippetexpander_amd64.deb
- - tgz: |
- # Add wails to PATH.
- export PATH="$PATH:$HOME/go/bin"
- cd snippetexpander
- make tgz
artifacts:
+ - snippetexpander.tgz
- snippetexpander_amd64.deb
- - snippetexpander/snippetexpander.tgz