diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..064f69f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,56 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: '18' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Run build + run: npm run build --if-present + + - name: Upload build artifact + uses: actions/upload-artifact@v4 + with: + name: site-dist + path: dist + + deploy: + needs: build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Download artifact + uses: actions/download-artifact@v4 + with: + name: site-dist + + - name: Configure Pages + uses: actions/configure-pages@v3 + + - name: Upload artifact for Pages + uses: actions/upload-pages-artifact@v1 + with: + path: ./dist + + - name: Deploy to GitHub Pages + uses: actions/deploy-pages@v1 diff --git a/.github/workflows/webpack.yml b/.github/workflows/webpack.yml deleted file mode 100644 index fac0683..0000000 --- a/.github/workflows/webpack.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Deploy Webpack to GitHub Pages - -on: - push: - branches: ["main"] - -permissions: - contents: read - pages: write - id-token: write - -concurrency: - group: "pages" - cancel-in-progress: true - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: 'npm' - - - name: Install and Build - run: | - npm ci - npx webpack --mode production - - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - # This points to your output folder - path: ./dist - - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 diff --git a/index.html b/index.html new file mode 100644 index 0000000..e84995f --- /dev/null +++ b/index.html @@ -0,0 +1,21 @@ + + + +
+ + +