Skip to content

Commit 8946aa7

Browse files
committed
Publish book/release artifact instead of deploying over SSH
The downloads server is gone; releases are now published manually from the the-bread-code-downloads repo, which pulls this workflow's artifacts. Remove the two dead rsync-to-SSH-server steps and upload the full reader-facing release set (book/release: the TheBreadCode-* PDFs and EPUBs) as the 'books' artifact so the downloads repo's release script can copy them directly.
1 parent d97f656 commit 8946aa7

1 file changed

Lines changed: 10 additions & 28 deletions

File tree

.github/workflows/release-book-website.yml

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -65,38 +65,20 @@ jobs:
6565
run: |
6666
cd /app/book
6767
make -j -O bake
68-
- name: Copy book to downloads server
69-
# Best-effort: a temporarily unreachable downloads server must not
70-
# fail the whole release. Book/website artifacts are still uploaded
71-
# to GitHub below.
72-
continue-on-error: true
73-
uses: burnett01/rsync-deployments@v8
74-
with:
75-
switches: "-avzr"
76-
remote_host: ${{ secrets.SSH_HOST }}
77-
remote_user: ${{ secrets.SSH_USERNAME }}
78-
remote_key: ${{ secrets.SSH_KEY }}
79-
path: "book/release/*"
80-
remote_path: "~/downloads/the-sourdough-framework/"
68+
# The built PDFs/EPUBs are published to readers from the separate
69+
# the-bread-code-downloads repository: a maintainer runs `make release`
70+
# there to pull these artifacts and commit them (served at
71+
# downloads.the-bread-code.io). CI here only builds and uploads them.
8172
- name: Upload book artifacts to GitHub
8273
uses: actions/upload-artifact@v4
8374
with:
8475
name: books
85-
path: |
86-
book/book_serif/book.log
87-
book/book_serif/book.pdf
88-
book/book-epub/book.epub
89-
- name: Copy website to downloads server
90-
# Best-effort, same rationale as the book deploy above.
91-
continue-on-error: true
92-
uses: burnett01/rsync-deployments@v8
93-
with:
94-
switches: "-avzr --delete"
95-
remote_host: ${{ secrets.SSH_HOST }}
96-
remote_user: ${{ secrets.SSH_USERNAME }}
97-
remote_key: ${{ secrets.SSH_KEY }}
98-
path: "website/static_website_html/*"
99-
remote_path: "~/the-sourdough-framework/"
76+
# The final, reader-facing release set produced by `make bake`:
77+
# TheBreadCode-The-Sourdough-Framework.pdf
78+
# TheBreadCode-The-Sourdough-Framework-sans-serif.pdf
79+
# TheBreadCode-The-Sourdough-Framework.epub
80+
# TheBreadCode-The-Sourdough-Framework-black-and-white.epub
81+
path: book/release
10082
- name: Upload website artifacts to GitHub
10183
uses: actions/upload-artifact@v4
10284
with:

0 commit comments

Comments
 (0)