Skip to content

Commit

Permalink
permaweb-deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
ankushKun committed Jul 20, 2024
1 parent 6901656 commit 017c08f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,21 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
path: next_app/out
- name: copy for permadeploy
run: cp -r next_app/out dist

permaweb-deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: install permaweb-deploy
run: npm install -g permaweb-deploy
- name: deploy to permaweb
run: permaweb-deploy -a $ANT_PROCESS
env:
ANT_PROCESS: ${{ secrets.ANT_PROCESS }}
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}


# Deployment job
deploy:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
build
dist
dist-*

# Logs
logs
*.log
Expand Down

0 comments on commit 017c08f

Please sign in to comment.