M .gitlab-ci.yml => .gitlab-ci.yml +4 -6
@@ 12,9 12,7 @@ pages:
- cd element-web-$VER
- yarn install --frozen-lockfile
- yarn build
- - cp -r webapp/* ../public/
- - cp ../config.json ../public/
- - cp ../Information_Block.ogg ../public/media/message.ogg
- artifacts:
- paths:
- - public/
+ - cp ../config.json webapp/
+ - cp ../Information_Block.ogg webapp/media/message.ogg
+ - tar -C webapp -cvz . > https.tar.gz
+ - curl --oauth2-bearer "$SRHT_PAT" -Fcontent=@https.tar.gz -Fprotocol=HTTPS https://pages.xdavidwu.link/publish/element.xdavidwu.link