Skip to content

Commit 0f5fe36

Browse files
committed
Switching to sync-to-dossier action
(This commit may be repeated as this is debugged).
1 parent 67fcab1 commit 0f5fe36

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/docs.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
docs:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v3
1010
- name: Install Rust
1111
uses: hecrj/setup-rust-action@v1
1212
- name: Generate Docs
@@ -31,11 +31,11 @@ jobs:
3131
needs: docs
3232
steps:
3333
- name: Checkout
34-
uses: actions/checkout@v2
34+
uses: actions/checkout@v3
3535
with:
3636
ref: ${{ matrix.branch }}
3737
- name: Cache
38-
uses: actions/cache@v2
38+
uses: actions/cache@v3
3939
with:
4040
path: |
4141
~/.cargo/.crates.toml
@@ -55,11 +55,11 @@ jobs:
5555
run: cd book && mdbook build
5656

5757
- name: Deploy
58-
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/release' || startsWith(github.ref, 'refs/tags/')
59-
run: |
60-
wget https://khonsu.dev/dossier/builds/main/dossier
61-
chmod a+x dossier
62-
./dossier --token $TOKEN --url wss://khonsu.dev/_ws project sync bonsaidb book/book/html/ /${{ github.ref_name }}/guide
63-
env:
64-
TOKEN: ${{ secrets.DOSSIER_API_KEY_ID }}
65-
BONSAIDB_TOKEN_SECRET: ${{ secrets.DOSSIER_API_KEY }}
58+
uses: khonsulabs/sync-to-dossier@main
59+
with:
60+
url: ${{ secrets.DOSSIER_URL }}
61+
api-key-id: ${{ secrets.DOSSIER_API_KEY_ID }}
62+
api-key: ${{ secrets.DOSSIER_API_KEY }}
63+
project: bonsaidb
64+
from: book/book/html/
65+
to: /${{ github.ref_name }}/guide

0 commit comments

Comments
 (0)