From 9b456809722090dbd7d39c087fb6f2a1a1116c5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Delgatte?= Date: Mon, 11 Mar 2024 17:14:06 +0100 Subject: [PATCH] feat(production): initial deployment --- .github/workflows/production.yml | 29 +++++++++++++++++++++++++++++ netlify.toml | 5 +++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/production.yml create mode 100644 netlify.toml diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml new file mode 100644 index 00000000..8ab0014b --- /dev/null +++ b/.github/workflows/production.yml @@ -0,0 +1,29 @@ +name: Deploy to Netlify production + +on: + push: + branches: + - production + +jobs: + build-deploy: + if: "!contains(github.event.head_commit.message, 'ci skip')" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Deploy to Netlify + uses: nwtgck/actions-netlify@v1.2 + with: + production-branch: production + production-deploy: true + github-token: ${{ secrets.GITHUB_TOKEN }} + deploy-message: "Deploy from GitHub Actions" + netlify-config-path: "./netlify.toml" + enable-pull-request-comment: false + enable-commit-comment: true + overwrites-pull-request-comment: false + env: + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} + timeout-minutes: 2 diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 00000000..720453d1 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,5 @@ +[[redirects]] +from = "/*" +to = "/index.html" +status = 200 +force = false