Skip to content

Commit

Permalink
feat: update deployment pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
PKief committed May 17, 2024
1 parent d18e259 commit 7a8daf6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,23 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]

steps:
- name: Checkout 🛎
uses: actions/checkout@v2
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v2
- name: Setup Node ⚙
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: lts/*
cache: 'npm'
- name: Install node_modules 📦
run: npm ci
# - name: Run unit tests 🧪
# run: npm run test:unit
- name: Build ⚒️
run: npm run build-only -- --base https://pkief.com/material-color-converter/
run: npm run build-only -- --base https://pkief.github.io/material-color-converter/
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
node-version: ${{ matrix.node-version }}
branch: gh-pages
folder: dist
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<br>
<img src="https://raw.githubusercontent.com/PKief/material-color-converter/main/src/assets/img/logo.png" alt="logo" width="200">
<br><br>
<a href="https://pkief.com/material-color-converter/">Material Color Converter</a>
<a href="https://pkief.github.io/material-color-converter/">Material Color Converter</a>
<br>
<br>
</h1>
Expand Down

0 comments on commit 7a8daf6

Please sign in to comment.