feat!: Separate www into www/blog and www/private
Now the private content is stored as a git submodule. This means I can keep that repo's source private, but still use it in the build product. The build product (website) relies on HTTP basic authentication, so access control is maintained throughout the SDLC.
This commit is contained in:
parent
60d8788ffa
commit
095e0aadd8
116 changed files with 3854 additions and 118 deletions
|
|
@ -8,7 +8,6 @@ on:
|
|||
required: true
|
||||
type: choice
|
||||
options:
|
||||
- local
|
||||
- staging
|
||||
- prod
|
||||
|
||||
|
|
@ -19,7 +18,9 @@ jobs:
|
|||
- name: Download artifact
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: site-${{ github.sha }}
|
||||
path: blog/
|
||||
name: blog-${{ github.sha }}
|
||||
path: book/
|
||||
- name: Deploy
|
||||
run: nix shell nixpkgs#rsync --command ./deploy.sh ${{ inputs.target }}
|
||||
run: |
|
||||
nix shell nixpkgs#rsync --command rsync -av --delete book/ /srv/www/binning.net/
|
||||
printf "✓ Local deployment complete!\n"
|
||||
|
|
@ -8,11 +8,26 @@ jobs:
|
|||
runs-on: self-hosted
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
- name: Build
|
||||
run: nix shell nixpkgs#mdbook --command ./deploy.sh build
|
||||
run: |
|
||||
nix shell nixpkgs#mdbook --command mdbook build
|
||||
printf "✓ Build complete!\n"
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: site-${{ github.sha }}
|
||||
path: blog/
|
||||
|
||||
name: blog-${{ github.sha }}
|
||||
path: book/
|
||||
deploy:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Download artifact
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: blog-${{ github.sha }}
|
||||
path: book/
|
||||
- name: Deploy
|
||||
run: |
|
||||
nix shell nixpkgs#rsync --command rsync -av --delete book/ /srv/www/binning.net/
|
||||
printf "✓ Local deployment complete!\n"
|
||||
|
|
@ -10,12 +10,14 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build
|
||||
run: nix shell nixpkgs#mdbook --command ./deploy.sh build
|
||||
run: |
|
||||
nix shell nixpkgs#mdbook --command mdbook build
|
||||
printf "✓ Build complete!\n"
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: site-${{ github.sha }}
|
||||
path: blog/
|
||||
name: blog-${{ github.sha }}
|
||||
path: book/
|
||||
|
||||
|
||||
deploy:
|
||||
|
|
@ -25,7 +27,9 @@ jobs:
|
|||
- name: Download artifact
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: site-${{ github.sha }}
|
||||
path: blog/
|
||||
name: blog-${{ github.sha }}
|
||||
path: book/
|
||||
- name: Deploy
|
||||
run: nix shell nixpkgs#rsync --command ./deploy.sh local
|
||||
run: |
|
||||
nix shell nixpkgs#rsync --command rsync -av --delete book/ /srv/www/binning.net/
|
||||
printf "✓ Local deployment complete!\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue