Merge pull request #4799 from m1sterc001guy/force_internal_cli #124
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: Publish docs | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
docs: | |
name: Publish docs | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v26 | |
with: | |
name: fedimint | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
continue-on-error: true | |
- name: Build docs | |
run: nix build -L .#nightly.ci.workspaceDocExport | |
- if: github.repository == 'fedimint/fedimint' | |
name: Deploy docs | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./result/share/doc/ | |
cname: docs.fedimint.org | |
notifications: | |
if: always() && github.repository == 'fedimint/fedimint' && github.event_name != 'merge_group' | |
name: "Notifications" | |
timeout-minutes: 1 | |
runs-on: ubuntu-22.04 | |
needs: [ docs ] | |
steps: | |
- name: Discord notifications on failure | |
# https://stackoverflow.com/a/74562058/134409 | |
if: ${{ always() && contains(needs.*.result, 'failure') }} | |
# https://github.com/marketplace/actions/actions-status-discord | |
uses: sarisia/actions-status-discord@v1 | |
with: | |
webhook: ${{ secrets.DISCORD_WEBHOOK }} | |
# current job is a success, but that's not what we're interested in | |
status: failure |