diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..55d657c --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,31 @@ +name: "Deploy GitHub Pages" + +on: + push: + branches: + - main + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: "Checkout repository" + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: "Setup NodeJS & NPM" + uses: actions/setup-node@v3 + with: + node-version: 20 + cache: npm + - name: "Install dependencies" + run: npm ci + - name: "Build App" + run: npm run build + - name: "Deploy React App to GitHub Pages" + uses: JamesIves/github-pages-deploy-action@4.1.8 + with: + token: ${{ secrets.GITHUB_TOKEN }} + branch: gh-pages + clean: true + folder: dist diff --git a/index.html b/index.html index 47bcf17..0b25140 100644 --- a/index.html +++ b/index.html @@ -74,7 +74,7 @@
- +