Commit e22de031 authored by André's avatar André Committed by Philipp Hörist

CI: Fix artifact upload

Remove confusing 'default' from file name.
parent 4750b2d6
......@@ -32,27 +32,21 @@ run-build:
script:
- python3 setup.py sdist
- cd dist
- export FN="gajim-default-"$(date +%F)".tar"
- mv gajim-*.tar.gz $FN.gz
- mkdir tmp_add_plugins
- mv $FN.gz tmp_add_plugins/
- cd tmp_add_plugins/
- tar xzf $FN.gz
- rm $FN.gz
- export GF=$(find . -maxdepth 1 -type d -name 'gajim-*')
- GF=$(basename gajim-* .tar.gz)
- gzip -d $GF.tar.gz
- mkdir -p $GF/gajim/data/plugins/
- cd $GF/gajim/data/plugins/
- curl -O https://ftp.gajim.org/plugins_1/plugin_installer.zip
- unzip plugin_installer.zip
- unzip plugin_installer.zip -d $GF/gajim/data/plugins/
- rm plugin_installer.zip
- cd ../../../..
- tar czf ../$FN.gz gajim-*
- cd ..
- rm -rf tmp_add_plugins
- scp $FN.gz panoramix:/var/www/gajim/downloads/snap/ci/gajim-default-$CI_COMMIT_SHA.tar.gz
- tar -uf $GF.tar $GF
- gzip $GF.tar
- rm -rf $GF
- export FN="gajim-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA.tar.gz"
- mv $GF.tar.gz $FN
- scp $FN panoramix:/var/www/gajim/downloads/snap/ci/
artifacts:
name: "gajim-default-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA"
name: "gajim-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA"
expire_in: 1 week
paths:
- gajim-default-$CI_COMMIT_SHA.tar.gz
- dist/gajim-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA.tar.gz
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment