Translation updates from Crowdin (#754) #34
Workflow file for this run
This file contains hidden or 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
| name: Docs CI/CD | |
| on: | |
| push: | |
| tags: [ v* ] | |
| workflow_dispatch: | |
| defaults: | |
| run: | |
| working-directory: docs | |
| shell: bash | |
| jobs: | |
| deploy: | |
| name: Deploy | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| deployments: write | |
| steps: | |
| - name: Harden runner | |
| uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout repository | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: false | |
| - name: Configure cache | |
| run: echo "CACHE_ID=$(date --utc '+%Y-%V')" >> $GITHUB_ENV | |
| - name: Configure cache | |
| uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 | |
| with: | |
| path: ./docs/.cache | |
| key: mkdocs-${{ env.CACHE_ID }} | |
| restore-keys: mkdocs- | |
| - name: Install Python | |
| uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | |
| with: | |
| python-version: '3.13' | |
| cache: pip | |
| - name: Install Wrangler | |
| run: npm install -g wrangler@3.x | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt | |
| - name: Build the documentation | |
| run: mkdocs build | |
| - name: Publish the documentation | |
| uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 # v3.14.1 | |
| with: | |
| gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| command: pages deploy dist --project-name=pwasforfirefox --branch=main | |
| workingDirectory: docs |