Add compio-ws blog (#25) #73
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Apache Iggy Website | |
| on: | |
| push: | |
| branches: | |
| - main # Runs when you push to the main branch | |
| workflow_dispatch: # Allows manual triggering | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Fetch full history for accurate commits | |
| - name: Install Dependencies | |
| run: | | |
| npm install | |
| - name: Clean Build Directory | |
| run: | | |
| rm -rf ./build | |
| - name: Build Apache Iggy Website | |
| run: | | |
| npm run build --clean | |
| - name: Copy ASF config | |
| run: | | |
| cp .asf.yaml ./build/.asf.yaml # Ensure .asf.yaml is inside build directory | |
| cp .asf.yaml ./build/.asf.yaml # Ensure .asf.yaml is inside build directory | |
| # Publish to asf-site for production | |
| - name: Publish Iggy Website to asf-site | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_branch: asf-site | |
| publish_dir: ./build | |
| destination_dir: ./ | |
| force_orphan: true | |
| user_name: 'github-actions[bot]' | |
| user_email: 'github-actions[bot]@users.noreply.github.com' | |
| commit_message: 'Deploy website from main branch' |