-
Notifications
You must be signed in to change notification settings - Fork 248
feat(zola): move site to Zola #381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
cbd3791
8bd6d16
c32ff21
5428f60
81e92fb
70cc29b
8d89665
dbe01bb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,53 +1,43 @@ | ||
| name: Validate build & urls | ||
| on: [pull_request] | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| node-version: [12.x] | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v2 | ||
| name: Build site | ||
|
|
||
| - name: Capture changed files | ||
| uses: jitterbit/get-changed-files@v1 | ||
| id: files | ||
| with: | ||
| format: csv | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| on: | ||
| push: | ||
| branches: [ "dev" ] | ||
| pull_request: | ||
| types: | ||
| - opened | ||
| - reopened | ||
| - synchronize | ||
| - closed | ||
|
|
||
| - name: Cache node modules | ||
| uses: actions/cache@v2 | ||
| env: | ||
| cache-name: cache-node-modules | ||
| with: | ||
| # npm cache files are stored in `~/.npm` on Linux/macOS | ||
| path: ~/.npm | ||
| key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-build-${{ env.cache-name }}- | ||
| ${{ runner.os }}-build- | ||
| ${{ runner.os }}- | ||
| concurrency: preview-${{ github.ref }} | ||
|
|
||
| - name: Install dependencies | ||
| run: npm install | ||
| env: | ||
| CARGO_TERM_COLOR: always | ||
|
|
||
| - name: Backwards compatibility | ||
| run: | | ||
| mkdir -p dist | ||
| npm run babel | ||
|
|
||
| - name: Build | ||
| run: npm run build | ||
|
|
||
| - name: Validate URLs | ||
| # Only run this if these files were edited | ||
| if: contains(steps.files.outputs.added_modified, 'app/data/*.json') | ||
| uses: urlstechie/[email protected] | ||
| with: | ||
| # Only validate the files that were changed | ||
| include_files: ${{ steps.files.outputs.added_modified }} | ||
| sub_folder: app/data/ | ||
| file_types: .json | ||
| timeout: 3 | ||
| jobs: | ||
| build_and_deploy: | ||
| runs-on: ubuntu-latest | ||
| if: github.ref == 'refs/heads/dev' | ||
| steps: | ||
| - name: Check out repository | ||
| uses: actions/checkout@v4 | ||
| - name: Build and deploy | ||
| uses: shalzz/[email protected] | ||
| env: | ||
| PAGES_BRANCH: gh-pages | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| preview: | ||
| runs-on: ubuntu-latest | ||
| if: github.ref != 'refs/heads/dev' | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Install and build | ||
| if: github.event.action != 'closed' | ||
| uses: shalzz/[email protected] | ||
| env: | ||
| BUILD_ONLY: true | ||
| BUILD_FLAGS: --drafts | ||
| BUILD_THEMES: false | ||
| CHECK_LINKS: true |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.