Add support for ICM45605 and ICM45686 #57
Workflow file for this run
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: 'Preview Deployment' | |
on: | |
pull_request_target: | |
branches: | |
- master | |
jobs: | |
deploy: | |
permissions: | |
actions: read | |
contents: read | |
deployments: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Cache node_modules | |
uses: actions/cache@v4 | |
with: | |
path: node_modules/ | |
key: node_modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
- name: Install node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- run: npm install yarn -g | |
- run: yarn install | |
- run: yarn build | |
- name: Deploy to Cloudflare | |
id: deploy | |
uses: cloudflare/wrangler-action@v3 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
command: pages deploy src/dist --project-name=${{ vars.CLOUDFLARE_PROJECT_NAME }} --branch ${{ github.head_ref }} --commit-dirty=true | |
- name: Add deployment comment | |
uses: thollander/actions-comment-pull-request@v3 | |
with: | |
message: | | |
Preview URL: ${{ steps.deploy.outputs.deployment-url }} | |
reactions: eyes, rocket | |
comment-tag: 'Preview URL' | |
mode: recreate |