diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml new file mode 100644 index 0000000..b059d7c --- /dev/null +++ b/.github/workflows/deployment.yml @@ -0,0 +1,25 @@ +name: Deploy Monolith to GitHub Pages + +on: + push: + branches: + - main + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' # or the version you're using + - name: Install dependencies + run: npm install + - name: Build + run: npm run build + - name: Deploy + uses: JamesIves/github-pages-deploy-action@4.1.4 + with: + branch: gh-pages + folder: dist diff --git a/astro.config.mjs b/astro.config.mjs index 6f414cd..d4b946f 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,5 +1,4 @@ export default { - // ... - base: '/Monolith-MMI/', - }; - \ No newline at end of file + // ... + base: "/Monolith/", +}; diff --git a/package.json b/package.json index 02d19a3..b1d195b 100644 --- a/package.json +++ b/package.json @@ -18,4 +18,4 @@ "devDependencies": { "gh-pages": "^6.1.1" } -} +} \ No newline at end of file