Skip to content

Commit

Permalink
ci: edit deploy script; create dist/CNAME while build
Browse files Browse the repository at this point in the history
  • Loading branch information
mariamarinescu committed Jan 10, 2025
1 parent 0fdfa05 commit d32e2ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
# env: # Add env secrets here

steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand All @@ -24,9 +22,7 @@ jobs:
node-version: '18'

- name: Install dependencies
run: |
rm -rf node_modules package-lock.json
npm install
run: npm ci

- name: Build project
run: npm run build
Expand Down Expand Up @@ -72,4 +68,4 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_branch: gh-pages
publish_branch: gh-pages-preview
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"build": "tsc -b && vite build && echo rriamarria.de > dist/CNAME",
"lint": "eslint . --ext .ts,.tsx",
"preview": "vite preview"
},
Expand Down

0 comments on commit d32e2ec

Please sign in to comment.