Skip to content

Commit

Permalink
Update gh-pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
genuinemoses authored Dec 12, 2023
1 parent 29516a3 commit 41ff4e1
Showing 1 changed file with 15 additions and 27 deletions.
42 changes: 15 additions & 27 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
Expand Down Expand Up @@ -46,7 +45,7 @@ jobs:
path: ./_site
name: github-pages
retention-days: 1

deploy:
runs-on: ubuntu-latest
needs: [build]
Expand All @@ -60,33 +59,22 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

report-status:
report-build-status:
runs-on: ubuntu-latest
needs: [build, deploy]
needs: [build]

steps:
- name: Checkout repository
uses: actions/[email protected]
with:
ref: "main"

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.8

- name: Print PWD
run: pwd

- name: Install requests
run: python -m pip install requests

- name: Report build status
run: python .github/scripts/report_build_status.py
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Report deployment status
run: python .github/scripts/report_deploy_status.py

- name: Set up GitHub CLI
uses: actions/[email protected]

- name: Run GitHub CLI command
run: |
gh api -X POST "repos/$GITHUB_REPOSITORY/pages/telemetry" \
-F github_run_id="$GITHUB_RUN_ID" \
-F conclusion="$CONCLUSION"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONCLUSION: success

0 comments on commit 41ff4e1

Please sign in to comment.