File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 11name : Build and Deploy
22on : [push, workflow_dispatch]
3+
34jobs :
45 build-and-deploy :
56 runs-on : ubuntu-latest
1011 - name : Set up Python 3 🐍
1112 uses : actions/setup-python@v2
1213 with :
13- python-version : ' 3.8' # Version range or exact version of a Python version to use, using SemVer's version range syntax
14- architecture : ' x64' # optional x64 or x86. Defaults to x64 if not specified
14+ python-version : ' 3.8' # Versión de Python a usar
15+ architecture : ' x64'
1516
1617 - name : Update PIP ✨
1718 run : |
@@ -23,10 +24,12 @@ jobs:
2324 run : python -m pip install -r requirements.txt
2425
2526 - name : Run script 🏃
26- run : python static.py --with-trans-calc
27+ env :
28+ WEBLATE_API_TOKEN : ${{ secrets.WEBLATE_API_TOKEN }} # Pasar el secret como variable de entorno
29+ run : python static.py
2730
2831 - name : Deploy 🚀
29323033 with :
31- branch : main # The branch the action should deploy to.
32- folder : docs # The folder the action should deploy.
34+ branch : main # La rama a la que se debe hacer deploy
35+ folder : docs # La carpeta a desplegar
You can’t perform that action at this time.
0 commit comments