Skip to content

Commit

Permalink
enable auto deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ghorbanzade committed Feb 18, 2024
1 parent ef97f06 commit 23e3270
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/webapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,24 @@ jobs:
node-version: 20
cache: 'npm'
cache-dependency-path: package-lock.json
- name: Setup Pages
uses: actions/configure-pages@v3
with:
static_site_generator: next
- run: npm ci
- run: npm run export
- uses: actions/upload-artifact@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
name: app-bundle
path: ${{ github.workspace }}/out
retention-days: 1
path: ./out

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 23e3270

Please sign in to comment.