🚀 Deploy GH Pages #2459
This file contains 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 GH Pages" | |
on: | |
workflow_run: | |
workflows: | |
- "🌀 Z PageSpeed Insights" | |
- "🌀 Z Activity" | |
- "🌀 Z Metrics" | |
- "🌀 Z Reader" | |
types: | |
- completed | |
workflow_dispatch: {} | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
steps: | |
- name: "⤵️ Check out code from GitHub" | |
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c | |
with: | |
fetch-depth: 0 | |
- name: "🚀 Deploy Metrics to GitHub Pages" | |
if: github.ref == 'refs/heads/main' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ github.token }} | |
publish_branch: gh-pages | |
publish_dir: metrics | |
keep_files: true | |
user_name: ${{ secrets.ACTIONS_USER }} | |
user_email: ${{ secrets.ACTIONS_MAIL }} |