this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

✨ Pass full language name and BCP47 locale tag to build process

Signed-off-by: Gwenn Le Bihan <gwenn.lebihan7@gmail.com>

+16 -7
+2 -1
.github/workflows/publish.yml
··· 21 21 runs-on: ubuntu-latest 22 22 23 23 environment: 24 - name: Beta, ${{ github.event.client_payload.lang }} subdomain 24 + name: Beta, ${{ github.event.client_payload.language }} subdomain 25 25 url: https://beta.${{ github.event.client_payload.lang }}.gwen.works 26 26 27 27 steps: ··· 53 53 run: cd source && npm run build 54 54 env: 55 55 LANG: ${{ github.event.client_payload.lang }} 56 + LOCALE: ${{ github.event.client_payload.locale }} 56 57 BUILD_COMMIT: ${{ github.sha }} 57 58 58 59 - name: Save cached wakatime API response
+13 -5
.github/workflows/trigger-publish.yml
··· 12 12 runs-on: ubuntu-latest 13 13 strategy: 14 14 matrix: 15 - language: [en, fr] 15 + include: 16 + - { lang: en, language: english, locale: en-US } 17 + - { lang: fr, language: french, locale: fr-FR } 16 18 environment: 17 - name: Repository ${{ matrix.language}} 18 - url: https://github.com/gwennlbh/portfolio-build-${{ matrix.language }} 19 + name: ${{ matrix.locale }} build repository 20 + url: https://github.com/gwennlbh/portfolio-build-${{ matrix.lang }} 19 21 steps: 20 22 - name: Dispatch workflow 21 23 uses: peter-evans/repository-dispatch@v3 22 24 with: 23 - repository: gwennlbh/portfolio-build-${{ matrix.language }} 25 + repository: gwennlbh/portfolio-build-${{ matrix.lang }} 24 26 event-type: build 25 - client-payload: '{ "ref": "${{ github.sha }}", "lang": "${{ matrix.language }}" }' 27 + client-payload: '{ 28 + "ref": "${{ github.sha }}", 29 + "lang": "${{ matrix.lang }}", 30 + "language": "${{ matrix.language }}", 31 + "locale": "${{ matrix.locale }}" 32 + }' 26 33 token: ${{ secrets.REPOSITORY_DISPATCH_PAT }} 34 +
+1 -1
package.json
··· 8 8 "preview": "astro preview", 9 9 "astro": "astro", 10 10 "format": "prettier --write .", 11 - "syncworkflow": "cp .github/workflows/publish.yml builders/en/.github/workflows; cd builders/en; git add .github; git commit -m 'Update workflow'; git push; cd ..; cp .github/workflows/publish.yml builders/fr/.github/workflows; cd builders/fr; git add .github; git commit -m 'Update workflow'; git push", 11 + "syncworkflow": "cp .github/workflows/publish.yml builders/en/.github/workflows; cd builders/en; git add .github; git commit -m 'Update workflow'; git push; cd ../..; cp .github/workflows/publish.yml builders/fr/.github/workflows; cd builders/fr; git add .github; git commit -m 'Update workflow'; git push", 12 12 "database": "ortfodb --config ./ortfodb.yaml --scattered build works.json" 13 13 }, 14 14 "dependencies": {