Commit e8a6dc29 authored by akiraohgaki's avatar akiraohgaki

Update .gitlab-ci.yml

parent e5cb4aad
Pipeline #371 failed with stages
in 25 seconds
......@@ -9,10 +9,13 @@ project-build:
- master
- /^release\-.+/
script:
- echo 'dummy' >> file-$(date +%s).txt
# Build your project and generate binary here
- echo 'dummy' > dummy.txt
- mkdir dist
- tar -czvf dist/file-$(date +%s).tar.gz dummy.txt
artifacts:
paths:
- file-*.txt
- dist/file-*.tar.gz
expire_in: 2 days
project-release:
......@@ -21,4 +24,10 @@ project-release:
only:
- /^release\-.+/
script:
- opendesktop-uploader file-*.txt
# To use opendesktop-uploader, you should set environment variables as protected variables in CI/CD settings.
# OPENDESKTOP_IDENTITY: Username or Email
# OPENDESKTOP_CREDENTIAL: Password
# OPENDESKTOP_PRODUCT_ID: ID number of product, used in https://www.opendesktop.org/p/{ID}/
# Upload your binary into your product page
- opendesktop-uploader dist/file-*.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