diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2022-07-22 15:10:01 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2022-07-22 15:10:01 -0400 |
| commit | 3bc9fcdb2f486babc31c845b638ae4c9567c8ec0 (patch) | |
| tree | 05389b474ffa6503e3dd9ef21a4a38c148bf4575 | |
| parent | 7ce00d43d24ff205786d63ab9b0ba92d910c7096 (diff) | |
the workflow should now depend on `npm gh-pages` through the new `package.json` script `deploy`.
| -rw-r--r-- | .github/workflows/deploy.yml | 28 | ||||
| -rw-r--r-- | package.json | 6 |
2 files changed, 16 insertions, 18 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 44d0b9e..fccca20 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,26 +2,22 @@ name: Deploy to GitHub Pages on: push: - branches: [ master ] + branches: [master] jobs: - build: + build-and-deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout 🛎️ + - uses: actions/checkout@v3 - - name: Setup Node - uses: actions/setup-node@v2 - with: - node-version: '14' - - - name: Install and Build + - name: Install and Build 🔧 run: | npm ci - npm run build - - - name: Deploy to GitHub Pages - uses: JamesIves/github-pages-deploy-action@4.1.5 - with: - branch: gh-pages - folder: dist
\ No newline at end of file + npm run deploy + + # - name: Deploy to GitHub Pages + # uses: JamesIves/github-pages-deploy-action@v4 + # with: + # branch: gh-pages + # folder: dist diff --git a/package.json b/package.json index 1879c31..b99d5a9 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,9 @@ "scripts": { "build": "vite build", "dev": "vite", - "start": "vite preview", - "check": "svelte-check --tsconfig ./tsconfig.json" + "start": "vite preview", + "check": "svelte-check --tsconfig ./tsconfig.json", + "deploy": "npx gh-pages -d dist" }, "devDependencies": { "@smui/button": "^4.2.0", @@ -17,6 +18,7 @@ "@tsconfig/svelte": "^2.0.1", "autoprefixer": "^10.4.7", "concurrently": "^7.2.1", + "gh-pages": "^4.0.0", "postcss": "^8.4.14", "postcss-load-config": "^4.0.1", "svelte": "^3.44.2", |
