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 1
1
name : Build and Deploy
2
2
on : [push, workflow_dispatch]
3
+
3
4
jobs :
4
5
build-and-deploy :
5
6
runs-on : ubuntu-latest
10
11
- name : Set up Python 3 🐍
11
12
uses : actions/setup-python@v2
12
13
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'
15
16
16
17
- name : Update PIP ✨
17
18
run : |
@@ -23,10 +24,12 @@ jobs:
23
24
run : python -m pip install -r requirements.txt
24
25
25
26
- 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
27
30
28
31
- name : Deploy 🚀
29
32
30
33
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