-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
1,710 additions
and
200 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,8 @@ on: | |
|
||
# Environment | ||
env: | ||
PYTHON_VERSION: 3.x | ||
PYTHON_VERSION: 3.9 | ||
POETRY_VERSION: 1.1.13 | ||
|
||
jobs: | ||
# Build and deploy documentation site | ||
|
@@ -21,12 +22,15 @@ jobs: | |
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
|
||
- name: Run image | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: ${{ env.POETRY_VERSION }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
poetry install | ||
- name: Deploy | ||
run: | | ||
mkdocs gh-deploy --force | ||
mkdocs --version | ||
poetry run mkdocs gh-deploy --force |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
.cache | ||
poetry.toml | ||
site/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"yaml.schemas": { | ||
"https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml" | ||
}, | ||
"yaml.customTags": [ | ||
"!ENV scalar", | ||
"!ENV sequence", | ||
"tag:yaml.org,2002:awesome-pages", | ||
"tag:yaml.org,2002:python/name:material.extensions.emoji.to_svg", | ||
"tag:yaml.org,2002:python/name:material.extensions.emoji.twemoji", | ||
"tag:yaml.org,2002:python/name:pymdownx.superfences.fence_code_format" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,14 +50,14 @@ Cuando clonamos un repositorio de otro usuario hacemos una copia del original. P | |
Push URL: [email protected]:miusuario/miniblog.git | ||
HEAD branch (remote HEAD is ambiguous, may be one of the following): | ||
develop | ||
master | ||
main | ||
Remote branches: | ||
develop tracked | ||
master tracked | ||
main tracked | ||
Local branch configured for 'git pull': | ||
master merges with remote master | ||
main merges with remote main | ||
Local ref configured for 'git push': | ||
master pushes to master (up to date) | ||
main pushes to main (up to date) | ||
|
||
También por convenio, la rama remota que hace referencia al repositorio original se llama _upstream_ y se crea de la siguiente manera: | ||
|
||
|
@@ -66,19 +66,19 @@ También por convenio, la rama remota que hace referencia al repositorio origina | |
* remote upstream | ||
Fetch URL: [email protected]:sgomez/miniblog.git | ||
Push URL: [email protected]:sgomez/miniblog.git | ||
HEAD branch: master | ||
HEAD branch: main | ||
Remote branches: | ||
develop new (next fetch will store in remotes/upstream) | ||
master new (next fetch will store in remotes/upstream) | ||
main new (next fetch will store in remotes/upstream) | ||
Local ref configured for 'git push': | ||
master pushes to master (local out of date) | ||
main pushes to main (local out of date) | ||
|
||
En este caso, la URI debe ser siempre la del proyecto original. Y ahora para incorporar actualizaciones, usaremos el merge en dos pasos: | ||
|
||
$ git fetch upstream | ||
$ git merge upstream/master | ||
$ git merge upstream/main | ||
|
||
Recordemos que _fetch_ solo trae los cambios que existan en el repositorio remoto sin hacer ningún cambio en nuestro repositorio. Es la orden _merge_ la que se encarga de que todo esté sincronizado. En este caso decimos que queremos fusionar con la rama _master_ que está en el repositorio _upstream_. | ||
Recordemos que _fetch_ solo trae los cambios que existan en el repositorio remoto sin hacer ningún cambio en nuestro repositorio. Es la orden _merge_ la que se encarga de que todo esté sincronizado. En este caso decimos que queremos fusionar con la rama _main_ que está en el repositorio _upstream_. | ||
|
||
### Creando nuevas funcionalidades | ||
|
||
|
@@ -90,9 +90,9 @@ Vamos a crear una nueva funcionalidad: vamos a añadir una licencia de uso. Para | |
$ git add LICESE | ||
$ git commit -m "Archivo de licencia de uso" | ||
|
||
En principio habría que probar que todo funciona bien y entonces integraremos en la rama _master_ de nuestro repositorio y enviamos los cambios a Github: | ||
En principio habría que probar que todo funciona bien y entonces integraremos en la rama _main_ de nuestro repositorio y enviamos los cambios a Github: | ||
|
||
$ git checkout master | ||
$ git checkout main | ||
$ git merge add-license --no-ff | ||
$ git branch -d add-license | ||
# Borramos la rama que ya no nos sirve para nada | ||
|
@@ -123,7 +123,7 @@ Ahora sí, el administrador puede aprobar la fusión y borrar la rama del reposi | |
|
||
Una vez que se han aceptado los cambios, podemos borrar la rama y actualizar nuestro repositorio con los datos del remoto como hicimos antes. ¿Por qué actualizar desde el remoto y no desde nuetra rama _add-license_? Pues porque usualmente el administrador puede haber modificado los cambios que le hemos propuesto, o incluso una tercera persona. Recordemos el cariz colaborativo que tiene Github. | ||
|
||
$ git checkout master | ||
$ git checkout main | ||
$ git branch -d add-license | ||
# Esto borra la rama local | ||
$ git push origin --delete add-license | ||
|
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
Oops, something went wrong.