Skip to content

Commit

Permalink
feat: add deploy config
Browse files Browse the repository at this point in the history
Signed-off-by: michalrozekariane <[email protected]>
  • Loading branch information
michalrozekariane committed Mar 18, 2024
1 parent 0ad2ae0 commit 51d7de5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '21'

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm run build

- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import * as path from 'path';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
base: '/airdrop-list-builder/',
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
Expand Down

0 comments on commit 51d7de5

Please sign in to comment.