tileos-settings-sway/.gitlab-ci.yml
Ivan Fonarev 02996575e9 test 230
2023-10-28 00:31:21 +03:00

33 lines
No EOL
930 B
YAML

# Is performed before the scripts in the stages step
before_script:
- source /etc/profile
# Defines stages which are to be executed
stages:
- build
# Stage "build"
build-package:
stage: build
script:
- pwd
- mkdir -p ./builds/artifact
- sudo apt update
- sudo apt install -y build-essential devscripts dh-make
- dpkg-buildpackage -us -uc
- mv ../*.{deb,tar.xz,dsc,changes} ./builds/artifact
only:
- tags
artifacts:
paths:
- ./builds/artifact
artifact_download:
stage: build
script:
- 'curl --location --output ~/builds/downloaded_artifacts/artifacts.zip --header "PRIVATE-TOKEN: glpat-FxQCwwpab9YkmNHWPVXY" "https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/master/download?job=build-package&job_token=$CI_JOB_TOKEN"'
- cd ~/builds/downloaded_artifacts
- unzip artifacts.zip
- rm artifacts.zip
only:
- tags
needs: [build-package]