mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
69 lines
1.4 KiB
YAML
69 lines
1.4 KiB
YAML
name: Build website
|
|
on:
|
|
pull_request:
|
|
branches: [master]
|
|
paths:
|
|
- "website/**"
|
|
- "firebase.json"
|
|
- ".github/workflows/*-website.yml"
|
|
push:
|
|
branches: [master]
|
|
paths:
|
|
- "website/**"
|
|
- "firebase.json"
|
|
- ".github/workflows/*-website.yml"
|
|
|
|
jobs:
|
|
build:
|
|
name: Build Website
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
PR_INFO_FILE: ".PR_INFO"
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: "16"
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
cd website
|
|
npm install
|
|
|
|
- name: Run prettier
|
|
run: |
|
|
cd website
|
|
npm run fmt
|
|
|
|
- name: Check Translations
|
|
run: |
|
|
cd website
|
|
npm run check-translations
|
|
|
|
- name: Build
|
|
run: |
|
|
cd website
|
|
npm run build
|
|
|
|
- name: Upload build artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: website
|
|
path: website/build/
|
|
retention-days: 1
|
|
|
|
- if: github.event_name == 'pull_request'
|
|
name: Build pr info
|
|
run: |
|
|
echo "${{ github.event.number }}" > $PR_INFO_FILE
|
|
|
|
- if: github.event_name == 'pull_request'
|
|
name: Upload pr info
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: pr-info
|
|
path: "${{ env.PR_INFO_FILE }}"
|
|
retention-days: 1
|