chore(deps): Update dependency cldr-localenames-modern to v45 #777
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: Build and Publish | |
| on: | |
| push: | |
| branches: [ master ] | |
| tags: [ '**' ] | |
| pull_request: | |
| branches: [ master ] | |
| schedule: | |
| - cron: '0 0 * * *' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '24.x' | |
| cache: 'npm' | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.13' | |
| cache: 'pip' | |
| - name: Install NPM dependencies | |
| run: npm ci | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install setuptools | |
| - name: Build | |
| run: npm run build | |
| publish-pypi: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| if: startsWith(github.ref, 'refs/tags') | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '24.x' | |
| cache: 'npm' | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.13' | |
| cache: 'pip' | |
| - name: Install NPM dependencies | |
| run: npm ci | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install setuptools wheel | |
| - name: Build for publishing | |
| run: | | |
| ./node_modules/.bin/gulp clean | |
| ./node_modules/.bin/gulp theme:build | |
| - name: Setup for publishing | |
| run: python setup.py sdist bdist_wheel --dist-dir=pypi-dist | |
| - name: Publish | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| packages-dir: pypi-dist | |
| publish-docker: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| if: ${{ github.ref == 'refs/heads/master' }} | |
| steps: | |
| - name: Docker Metadata | |
| id: docker_meta | |
| uses: docker/metadata-action@v6 | |
| with: | |
| images: ghcr.io/spongepowered/sponge-docs-theme | |
| tags: | | |
| latest | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4 | |
| - name: Login to ghcr.io | |
| uses: docker/login-action@v4 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and push | |
| uses: docker/build-push-action@v7 | |
| with: | |
| push: true | |
| tags: ${{ steps.docker_meta.outputs.tags }} | |
| labels: ${{ steps.docker_meta.outputs.labels }} | |
| build-args: | | |
| GITHUB_USER=${{ github.actor }} | |
| GITHUB_TOKEN=${{ github.token }} | |
| CROWDIN_TOKEN=${{ secrets.CROWDIN_TOKEN }} | |
| CROWDIN_PROJECT_ID=${{ secrets.CROWDIN_PROJECT_ID }} | |
| CROWDIN_BASE_URL=https://spongepowered.crowdin.com | |
| BASE_URL=https://docs.spongepowered.org |