diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml new file mode 100644 index 0000000..83ac74b --- /dev/null +++ b/.github/workflows/auto-assign.yml @@ -0,0 +1,19 @@ +name: Auto Assign +on: + issues: + types: [opened] + pull_request: + types: [opened] +jobs: + run: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - name: 'Auto-assign issue' + uses: pozil/auto-assign-issue@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + assignees: james-gates-0212 + numOfAssignee: 1 diff --git a/.github/workflows/proof-html.yml b/.github/workflows/proof-html.yml new file mode 100644 index 0000000..be7dac3 --- /dev/null +++ b/.github/workflows/proof-html.yml @@ -0,0 +1,11 @@ +name: Proof HTML +on: + push: + workflow_dispatch: +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: anishathalye/proof-html@v1.1.0 + with: + directory: ./ diff --git a/.github/workflows/vite-github-page.yml b/.github/workflows/vite-github-page.yml new file mode 100644 index 0000000..9f49297 --- /dev/null +++ b/.github/workflows/vite-github-page.yml @@ -0,0 +1,64 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Deploy Vite Project to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ['main'] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: 'pages' + cancel-in-progress: true + +jobs: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Node + uses: actions/setup-node@v4 + with: + node-version: 20 + - name: Install pnpm + uses: pnpm/action-setup@v3 + with: + version: 8 + run_install: false + - name: Get pnpm store directory + shell: bash + run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + - uses: actions/cache@v3 + name: Setup pnpm cache + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: ${{ runner.os }}-pnpm-store- + - name: Install dependencies + run: pnpm install + - name: Build + run: pnpm run build + - name: Setup Pages + uses: actions/configure-pages@v4 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + # Upload dist folder + path: './dist' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/src/App.tsx b/src/App.tsx index c5cea7c..6b7f8de 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -5,8 +5,8 @@ import NavBar from './components/Navbar'; import Stars from './backgrounds/Stars'; import About from './pages/About'; -const isDevelopmentMode = process.env.NODE_ENV === 'development'; -const isProductionMode = process.env.NODE_ENV === 'production'; +// const isDevelopmentMode = import.meta.env.NODE_ENV === 'development'; +// const isProductionMode = import.meta.env.NODE_ENV === 'production'; function App() { return ( @@ -18,7 +18,7 @@ function App() { zIndex: 1000, }} > - +
diff --git a/vite.config.ts b/vite.config.ts index 627a319..b9c8ddc 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -3,5 +3,6 @@ import react from '@vitejs/plugin-react'; // https://vitejs.dev/config/ export default defineConfig({ + base: '/web3-background-animation/', plugins: [react()], });