Skip to content

Commit

Permalink
ci(github): update workflow deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark authored Nov 27, 2024
1 parent 97692c9 commit 1d4cd87
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
name: deploy
permissions:
contents: write
on:
push:
branches:
- master

permissions:
contents: write

concurrency:
group: ${{ github.workflow_ref }}
cancel-in-progress: true

jobs:
deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
Expand All @@ -17,20 +21,11 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package.json', './package.json') }}
id: cache
cache: npm
node-version-file: .nvmrc

- name: Install 📦
if: steps.cache.outputs.cache-hit != 'true'
run: npm install --prefer-offline
run: npm ci --prefer-offline

- name: Build 🔧
run: npm run build -- --public-url https://remarkablemark.org/${{ github.event.repository.name }}
Expand Down

0 comments on commit 1d4cd87

Please sign in to comment.