From 22097daf7285857a1a8c5ec0db9bb0a5bbb80179 Mon Sep 17 00:00:00 2001 From: Joshua Ji Date: Tue, 10 Oct 2023 13:02:30 -0600 Subject: [PATCH] Deploy to netlify --- .github/workflows/ci.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e25447c..98a76bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,15 +31,10 @@ jobs: - name: Run Tests run: npm test - # https://github.com/dillonkearns/elm-pages/issues/404 - # a workaround for `elm-pages --base` command - - name: Move - run: | - mv ./dist/secd-machine/* ./dist - - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - if: github.ref == 'refs/heads/main' && github.event_name == 'push' + - name: Deploy to Netlify + uses: nwtgck/actions-netlify@v2.1 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./dist + publish-dir: './dist' + env: + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}