AMBARI-26473: Mailing list link is missing #51
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: Build and Deploy | |
| permissions: | |
| contents: write | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-website-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Build main document: Apache Ambari documentation | |
| - name: Checkout | |
| uses: actions/checkout@master | |
| - name: Use Node.js | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: 18.12.1 | |
| - name: Build Main Document | |
| run: yarn && yarn build | |
| - name: Deploy | |
| if: ${{ github.event_name == 'push' }} | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_branch: asf-site | |
| publish_dir: ./build | |
| user_name: 'github-actions[bot]' | |
| user_email: 'github-actions[bot]@users.noreply.github.com' | |
| commit_message: 'Automated deployment:' | |
| - name: Update .asf.yaml | |
| run: | | |
| git config --global user.name "GitHub Actions" | |
| git config --global user.email "dev@ambari.apache.org" | |
| git fetch --all | |
| git checkout asf-site | |
| echo 'staging:' > .asf.yaml | |
| echo ' profile: ~' >> .asf.yaml | |
| echo ' whoami: asf-site' >> .asf.yaml | |
| echo "" >> .asf.yaml | |
| echo 'publish:' >> .asf.yaml | |
| echo ' whoami: asf-site' >> .asf.yaml | |
| git add .asf.yaml | |
| git commit -m '.asf.yaml' | |
| git push origin asf-site | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |