-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Draft idea for building edition websites
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 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 |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
push: | ||
branches: | ||
- main | ||
- v* | ||
|
||
jobs: | ||
build-book: | ||
|
@@ -76,6 +77,7 @@ jobs: | |
run: cd website && make | ||
|
||
- name: Deploy website index | ||
if: github.ref == 'refs/heads/main' | ||
uses: JamesIves/[email protected] | ||
with: | ||
folder: website | ||
|
@@ -95,6 +97,7 @@ jobs: | |
# run: cd source && ninja python-book-pdf | ||
|
||
- name: Deploy Python book | ||
if: github.ref == 'refs/heads/main' | ||
uses: JamesIves/[email protected] | ||
with: | ||
folder: python-book | ||
|
@@ -113,10 +116,30 @@ jobs: | |
# run: cd source && ninja python-book-pdf | ||
|
||
- name: Deploy R book | ||
if: github.ref == 'refs/heads/main' | ||
uses: JamesIves/[email protected] | ||
with: | ||
folder: r-book | ||
repository-name: resampling-stats/r-book | ||
branch: main | ||
single-commit: true | ||
token: ${{ secrets.BOOK_UPLOAD_TOKEN }} | ||
|
||
# If we're building a set edition, such as v3, push all into | ||
# same repo | ||
|
||
- name: Setup book edition for deployment | ||
if: startsWith(github.ref, 'refs/heads/v') | ||
run: | | ||
cp -r r-book website | ||
cp -r python-book website | ||
- name: Deploy book edition | ||
if: startsWith(github.ref, 'refs/heads/v') | ||
uses: JamesIves/[email protected] | ||
with: | ||
folder: website | ||
repository-name: "resampling-stats/${{ github.ref_name }}" | ||
branch: main | ||
single-commit: true | ||
token: ${{ secrets.BOOK_UPLOAD_TOKEN }} |