ci: deploy builds to production
All checks were successful
Build and deploy / lint (push) Successful in 1m9s
All checks were successful
Build and deploy / lint (push) Successful in 1m9s
This commit is contained in:
parent
7ac34257d9
commit
925402ab89
3 changed files with 17 additions and 3 deletions
|
@ -26,4 +26,4 @@ jobs:
|
||||||
run: nix develop --command npx quartz build
|
run: nix develop --command npx quartz build
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
run: nix develop --command netlify deploy --auth ${{ secrets.NETLIFY_AUTH_TOKEN }} -s ${{ vars.NETLIFY_SITE_ID }} --dir public
|
run: nix develop --command netlify deploy --auth ${{ secrets.NETLIFY_AUTH_TOKEN }} -s ${{ vars.NETLIFY_SITE_ID }} --dir public --prod
|
||||||
|
|
16
Justfile
16
Justfile
|
@ -1,2 +1,16 @@
|
||||||
|
set unstable
|
||||||
|
|
||||||
update:
|
update:
|
||||||
rsync -rv --delete ~/brain/brain/public/ content/
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if ! git diff --cached --quiet; then \
|
||||||
|
echo "Error: there are pre-existing staged changes" && exit 1; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
rsync -rv --delete $HOME/brain/brain/public/ content/
|
||||||
|
git add content/
|
||||||
|
|
||||||
|
if ! git diff --cached --quiet; then \
|
||||||
|
export TIMESTAMP=$(date -u +"%Y-W%V-%u %H:%M:%S"); \
|
||||||
|
git commit -m "checkpoint: ${TIMESTAMP}"; \
|
||||||
|
fi
|
||||||
|
|
|
@ -74,5 +74,5 @@ jobs:
|
||||||
run: nix develop --command npm run build
|
run: nix develop --command npm run build
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
run: nix develop --command netlify deploy --auth ${{ secrets.NETLIFY_AUTH_TOKEN }} -s ${{ vars.NETLIFY_SITE_ID }}
|
run: nix develop --command netlify deploy --auth ${{ secrets.NETLIFY_AUTH_TOKEN }} -s ${{ vars.NETLIFY_SITE_ID }} --prod
|
||||||
```
|
```
|
Loading…
Add table
Add a link
Reference in a new issue