parent
6af3cf60f7
commit
2b450f0275
1 changed files with 26 additions and 1 deletions
|
|
@ -1,13 +1,38 @@
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: deploy-main
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: docker
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 24
|
||||||
|
cache: npm
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Build Astro static site
|
||||||
|
run: |
|
||||||
|
rm -rf dist
|
||||||
|
npm run build
|
||||||
|
|
||||||
|
- name: Verify static output
|
||||||
|
run: |
|
||||||
|
test -f dist/index.html
|
||||||
|
test -f dist/speeches/index.html
|
||||||
|
test -f dist/assets/icons/familyfed-favicon.png
|
||||||
|
|
||||||
- name: Restart Nomad allocation
|
- name: Restart Nomad allocation
|
||||||
env:
|
env:
|
||||||
NOMAD_ADDR: ${{ secrets.NOMAD_ADDR }}
|
NOMAD_ADDR: ${{ secrets.NOMAD_ADDR }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue