# 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" run-build: 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 # This stage is only executed for new tags only: - tags # The files which are to be made available in GitLab artifacts: paths: - ./builds/artifact