vueDocs #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: vueDocs | |
on: | |
workflow_dispatch: # Esto permite iniciar el flujo de trabajo manualmente | |
jobs: | |
init_project: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout código | |
uses: actions/checkout@v4 | |
- name: Create VuePress Project | |
run: | | |
vuepress build docs | |
- name: Commit y push archivos procesados | |
run: | | |
git config --local user.email "SidVal@users.noreply.github.com" | |
git config --local user.name "SidVal" | |
- name: Verificar cambios | |
id: check_changes | |
run: | | |
if [ -z "$(git status --porcelain)" ]; then | |
echo "No hay cambios." | |
echo "changes=false" >> $GITHUB_ENV | |
else | |
echo "Hay cambios." | |
echo "changes=true" >> $GITHUB_ENV | |
fi | |
- name: Commit y Push | |
if: env.changes == 'true' | |
run: | | |
git add . | |
git commit -m "Instalación" | |
git push |