We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c55837b commit f8767dcCopy full SHA for f8767dc
1 file changed
.github/workflows/publish.yml
@@ -58,12 +58,27 @@ jobs:
58
if: steps.updated.outputs.updated == 'true'
59
env:
60
GITHUB_TOKEN: ${{ github.token }}
61
+ WEBLATE_API_TOKEN: ${{ secrets.WEBLATE_API_TOKEN }}
62
run: |
63
+ pip install wlc
64
+ mkdir -p ~/.config && cat <<EOF > ~/.config/weblate
65
+ [weblate]
66
+ url = https://hosted.weblate.org/api/
67
+ key = $WEBLATE_API_TOKEN
68
+ translation = weblate/application
69
+ EOF
70
+ wlc lock
71
+ wlc push
72
+ git pull origin
73
+
74
# Commit the updated PO files.
75
git add i18n
76
git commit -m "Update translations to $(git rev-parse --short HEAD)."
77
git push origin
78
79
80
+ wlc unlock
81
82
- name: Publish site
83
84
LEKTOR_DEPLOY_USERNAME: brutusthebee
0 commit comments