Switch from eslint to oxlint (#5) #7
This file contains hidden or 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: π GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
# Logic based on examples in: | |
# - https://github.com/actions/upload-pages-artifact | |
# - https://github.com/actions/deploy-pages | |
jobs: | |
build: | |
if: github.repository == 'remix-run/remix-v2-website' | |
name: π Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: β¬οΈ Checkout repo | |
uses: actions/checkout@v4 | |
- name: β Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: π₯ Install deps | |
run: npm ci | |
- name: π Build | |
run: npm run build | |
- name: β¬οΈ Upload static files as artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: build/client/ | |
deploy: | |
name: π Deploy | |
needs: build | |
permissions: | |
pages: write # to deploy to Pages | |
id-token: write # to verify the deployment originates from an appropriate source | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |