this repo has no description
1
fork

Configure Feed

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

👷 Setup preview deployments

+56
+56
.github/workflows/preview.yml
··· 1 + name: Preview 2 + 3 + on: 4 + pull_request: 5 + 6 + concurrency: 7 + group: preview-${{ github.event.pull_request.number }} 8 + cancel-in-progress: true 9 + 10 + jobs: 11 + deploy: 12 + strategy: 13 + matrix: 14 + include: 15 + - { lang: en, locale: en-US, domain: en } 16 + - { lang: fr, locale: fr-FR, domain: fr } 17 + 18 + name: Build & deploy / ${{ matrix.locale }} 19 + runs-on: ubuntu-latest 20 + 21 + environment: 22 + name: "Preview #${{ github.event.pull_request.number }} / ${{ matrix.locale }}" 23 + url: ${{ steps.deploy.outputs.url }} 24 + 25 + steps: 26 + - name: Checkout code 27 + uses: actions/checkout@v5 28 + 29 + - name: Setup Bun 30 + uses: oven-sh/setup-bun@v2 31 + with: 32 + bun-version-file: .bun-version 33 + 34 + - name: Install dependencies 35 + run: bun install --frozen-lockfile 36 + 37 + - name: Build site 38 + run: bun run build 39 + env: 40 + LANG: ${{ matrix.lang }} 41 + LOCALE: ${{ matrix.locale }} 42 + BUILD_COMMIT: ${{ github.sha }} 43 + 44 + - name: Deploy to Netlify 45 + id: deploy 46 + run: | 47 + bunx netlify deploy --json $flags > result.json 48 + cat result.json 49 + echo "url=$(jq --raw-output .deploy_url result.json)" >> $GITHUB_OUTPUT 50 + env: 51 + flags: --alias pr-${{ github.event.pull_request.number }} 52 + --no-build 53 + --dir=dist 54 + --site=${{ matrix.domain }}.gwen.works 55 + --auth=${{ secrets.NETLIFY_TOKEN }} 56 + --message="${{ github.ref_name }}@${{ github.sha }}"