ci: build files every month (#650) #2391
This file contains 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 | |
on: | |
push: | |
branches: [master] | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: [master] | |
paths-ignore: | |
- '**.md' | |
schedule: | |
# build it every month so we always have valid build in actions | |
- cron: '15 5 1 * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-js-env | |
- name: Build | |
run: pnpm build --mode stage | |
- name: upload website build artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: sites | |
path: packages/website/dist |