Skip to content

Commit

Permalink
Deploy to netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuanianji committed Oct 10, 2023
1 parent 8ba357b commit 22097da
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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 }}

0 comments on commit 22097da

Please sign in to comment.