-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
45f6c2a
commit 3aba210
Showing
4 changed files
with
26 additions
and
19 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,22 +7,20 @@ jobs: | |
name: Build docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
- name: Set default toolchain | ||
run: rustup default nightly-2022-12-14 | ||
- name: Set profile | ||
run: rustup set profile minimal | ||
- name: Update toolchain | ||
run: rustup update | ||
- name: Rust Cache | ||
uses: Swatinem/[email protected] | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: Install Nix | ||
uses: DeterminateSystems/nix-installer-action@v5 | ||
# Cache Nix artifacts | ||
- uses: cachix/cachix-action@v12 | ||
with: | ||
name: bitcoindevkit | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
continue-on-error: true # for forks outside of bitcoindevkit GH org | ||
- name: Build docs | ||
run: cargo doc --no-deps | ||
env: | ||
RUSTDOCFLAGS: '--cfg docsrs -Dwarnings' | ||
run: nix develop -L .#docsNightly --command bash -c "cargo doc --no-deps" | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: built-docs | ||
path: ./target/doc/* | ||
|
@@ -34,7 +32,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout `bitcoindevkit.org` | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
with: | ||
ssh-key: ${{ secrets.DOCS_PUSH_SSH_KEY }} | ||
repository: bitcoindevkit/bitcoindevkit.org | ||
|
@@ -44,14 +42,14 @@ jobs: | |
- name: Remove old latest | ||
run: rm -rf ./docs/.vuepress/public/docs-rs/bdk/nightly/latest | ||
- name: Download built docs | ||
uses: actions/download-artifact@v1 | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: built-docs | ||
path: ./docs/.vuepress/public/docs-rs/bdk/nightly/latest | ||
- name: Configure git | ||
run: git config user.email "[email protected]" && git config user.name "github-actions" | ||
- name: Commit | ||
continue-on-error: true # If there's nothing to commit this step fails, but it's fine | ||
continue-on-error: true # If there's nothing to commit this step fails, but it's fine | ||
run: git add ./docs/.vuepress/public/docs-rs && git commit -m "Publish autogenerated nightly docs" | ||
- name: Push | ||
run: git push origin master |
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
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
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