Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Davide Ferracin
Black Box
Commits
33bab38d
Commit
33bab38d
authored
Apr 24, 2022
by
Paulo Queiroz
📦
Browse files
42.alpha2
parent
23af95ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
33bab38d
include
:
'
https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
variables
:
BUNDLE_NAME
:
"
terminal.flatpak"
flatpak
:
extends
:
.flatpak
image
:
'
registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:42'
...
...
@@ -13,6 +16,44 @@ flatpak:
# Replace with your application name, as written in the manifest
FLATPAK_MODULE
:
"
terminal"
APP_ID
:
"
com.raggesilver.Terminal"
BUNDLE
:
"
terminal.flatpak"
BUNDLE
:
${BUNDLE_NAME}
before_script
:
-
flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
persist_artifacts
:
needs
:
-
job
:
flatpak
artifacts
:
true
script
:
-
echo PA_JOB_ID=$CI_JOB_ID >> persist_artifacts.env
artifacts
:
name
:
${BUNDLE_NAME}
paths
:
-
${BUNDLE_NAME}
reports
:
# To ensure we've access to this file in the next stage
dotenv
:
persist_artifacts.env
expire_in
:
never
# Only run this for tag pipelines (releases)
rules
:
-
if
:
$CI_COMMIT_TAG
# https://crypt.codemancers.com/posts/2021-08-31-release-artifacts-using-gitlab-cicd/
release
:
image
:
registry.gitlab.com/gitlab-org/release-cli:latest
script
:
-
echo "Releasing ${CI_COMMIT_TAG}"
needs
:
-
job
:
persist_artifacts
artifacts
:
true
release
:
name
:
'
Release
$CI_COMMIT_TAG'
description
:
'
Created
using
the
release-cli'
tag_name
:
'
$CI_COMMIT_TAG'
assets
:
links
:
-
name
:
'
Flatpak
bundle'
url
:
'
https://gitlab.gnome.org/raggesilver/terminal/-/jobs/${PA_JOB_ID}/artifacts/file/${BUNDLE_NAME}'
# Only run this for tag pipelines (releases)
rules
:
-
if
:
$CI_COMMIT_TAG
meson.build
View file @
33bab38d
project
(
'terminal'
,
[
'c'
,
'vala'
],
version
:
'42.alpha
1
'
,
version
:
'42.alpha
2
'
,
meson_version
:
'>= 0.50.0'
,
default_options
:
[
'warning_level=2'
,
],
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment