Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
projeto-documentacao
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Andre Filipe Aloise
projeto-documentacao
Commits
53b6fbad
Commit
53b6fbad
authored
Jan 22, 2026
by
ANDRE FILIPE ALOISE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adiciona robô 2
parent
ce2f3ec9
Pipeline
#7918
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
.gitlab-ci.yml
.gitlab-ci.yml
+40
-0
No files found.
.gitlab-ci.yml
View file @
53b6fbad
image
:
python:3.9-buster
# Define que usaremos cache para ser mais rápido
variables
:
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
cache
:
paths
:
-
.cache/pip
pages
:
script
:
# O Robô se identifica
-
git config --global user.name "Robo CI"
-
git config --global user.email "robo@gitlab.com"
# Instala as ferramentas
-
pip install mkdocs mkdocs-material mike
# Baixa a branch especial onde os sites ficam guardados
-
git fetch origin pages --depth=1 || git checkout --orchestrator pages || echo "Criando branch pages"
# LÓGICA DE VERSÃO (O Grande Segredo)
# Se estamos na branch 'main', publicamos como versão 'dev' (desenvolvimento)
# Se estamos numa branch de versão (v1.0), publicamos como '1.0'
-
|
if [ "$CI_COMMIT_BRANCH" == "main" ]; then
mike deploy dev latest --update-aliases --push
else
mike deploy $CI_COMMIT_BRANCH --push
fi
artifacts
:
paths
:
-
public
# Onde o site final fica
# Quando esse robô deve trabalhar?
only
:
-
main
-
/^v\d+\.\d+/
# Ex: v1.0, v2.0
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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