Skip to content

Commit

Permalink
attempt #1 to fix deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Duri committed Nov 25, 2023
1 parent 92632ae commit e5e4a05
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,17 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: dist

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20' # Specify your Node.js version here

- name: Install Dependencies
run: npm install

- name: Build
run: npm run build

- name: Publish to NPM
run: npm publish
env:
Expand All @@ -91,13 +92,20 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Download Artifact
uses: actions/download-artifact@v3
- name: Set up Node.js
uses: actions/setup-node@v4
with:
name: public
node-version: '20' # Specify your Node.js version here

- name: Install Dependencies
run: npm install

- name: Build
run: npm run build

- uses: jsmrcaga/[email protected]
with:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_DEPLOY_TO_PROD: true
NETLIFY_DEPLOY_TO_PROD: true
build_directory: public
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"directories": {
"doc": "docs"
},
"files": [
"dist"
],
"scripts": {
"start": "node ./run.js --serve",
"build": "node ./run.js",
Expand Down

0 comments on commit e5e4a05

Please sign in to comment.