# Deploy VitePress site to Forgejo Pages name: Deploy on: push: branches: [main] workflow_dispatch: jobs: build: runs-on: ubuntu-latest defaults: run: working-directory: site steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 20 - run: npm ci - run: npm run build - name: Upload artifact uses: actions/upload-artifact@v4 with: name: site-dist path: site/.vitepress/dist deploy: runs-on: ubuntu-latest needs: build steps: - name: Download artifact uses: actions/download-artifact@v4 with: name: site-dist path: dist - name: Deploy to Forgejo Pages run: | echo "Deploy site/.vitepress/dist to your web server" echo "See: http://185.239.209.216:3001/artale/agentic-engineering-course"