Skip to content

Commit d3dade5

Browse files
committed
🎄 chore: configure workflow to use Weblate API token
Updated the workflow configuration to securely use the Weblate API token for interacting with the translation platform.
1 parent 3452034 commit d3dade5

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/jamstack.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Build and Deploy
22
on: [push, workflow_dispatch]
3+
34
jobs:
45
build-and-deploy:
56
runs-on: ubuntu-latest
@@ -10,8 +11,8 @@ jobs:
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 🚀
2932
uses: JamesIves/[email protected]
3033
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

0 commit comments

Comments
 (0)