2022-09-08 23:09:26 +00:00
|
|
|
name: Build Nightly
|
2022-08-30 02:30:36 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-09-09 18:49:51 +00:00
|
|
|
branches:
|
|
|
|
- main
|
2022-10-11 03:26:29 +00:00
|
|
|
release:
|
|
|
|
types:
|
|
|
|
- published
|
2022-08-30 02:30:36 +00:00
|
|
|
|
2022-09-09 19:12:25 +00:00
|
|
|
env:
|
|
|
|
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
|
|
|
|
2022-08-30 02:30:36 +00:00
|
|
|
jobs:
|
2022-10-11 17:27:46 +00:00
|
|
|
backend-tests:
|
|
|
|
name: "Backend Server Tests"
|
|
|
|
uses: hay-kot/homebox/.github/workflows/partial-backend.yaml@main
|
2022-09-09 18:49:51 +00:00
|
|
|
|
2022-10-11 17:27:46 +00:00
|
|
|
frontend-tests:
|
|
|
|
name: "Frontend and End-to-End Tests"
|
|
|
|
uses: hay-kot/homebox/.github/workflows/partial-frontend.yaml@main
|
2022-09-09 18:49:51 +00:00
|
|
|
|
2022-10-11 17:27:46 +00:00
|
|
|
deploy:
|
|
|
|
name: "Deploy Nightly to Fly.io"
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs:
|
|
|
|
- backend-tests
|
|
|
|
- frontend-tests
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: superfly/flyctl-actions/setup-flyctl@master
|
|
|
|
- run: flyctl deploy --remote-only
|
2022-09-09 19:12:25 +00:00
|
|
|
|
2022-10-11 16:57:34 +00:00
|
|
|
publish-nightly:
|
|
|
|
name: "Publish Nightly"
|
2022-10-11 17:09:17 +00:00
|
|
|
if: ${{ github.event_name != 'release' }}
|
2022-10-11 17:27:46 +00:00
|
|
|
needs:
|
|
|
|
- backend-tests
|
|
|
|
- frontend-tests
|
2022-10-11 03:26:29 +00:00
|
|
|
uses: hay-kot/homebox/.github/workflows/partial-publish.yaml@main
|
|
|
|
with:
|
2022-10-11 16:57:34 +00:00
|
|
|
tag: nightly
|
2022-10-11 03:38:39 +00:00
|
|
|
secrets:
|
2022-10-11 03:39:15 +00:00
|
|
|
GH_TOKEN: ${{ secrets.CR_PAT }}
|
2022-09-08 23:09:26 +00:00
|
|
|
|
2022-10-11 16:57:34 +00:00
|
|
|
publish-tag:
|
|
|
|
name: "Publish Tag"
|
2022-10-11 17:09:17 +00:00
|
|
|
if: github.event_name == 'release'
|
2022-10-11 17:27:46 +00:00
|
|
|
needs:
|
|
|
|
- backend-tests
|
|
|
|
- frontend-tests
|
2022-10-11 03:26:29 +00:00
|
|
|
uses: hay-kot/homebox/.github/workflows/partial-publish.yaml@main
|
|
|
|
with:
|
2022-10-11 16:57:34 +00:00
|
|
|
release: true
|
|
|
|
tag: ${{ github.event.release.tag_name }}
|
2022-10-11 03:38:39 +00:00
|
|
|
secrets:
|
2022-10-11 03:39:15 +00:00
|
|
|
GH_TOKEN: ${{ secrets.CR_PAT }}
|
2022-09-12 22:50:10 +00:00
|
|
|
|
|
|
|
deploy-docs:
|
|
|
|
name: Deploy docs
|
|
|
|
needs:
|
2022-10-11 03:27:06 +00:00
|
|
|
- publish-tag
|
2022-09-12 22:50:10 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout main
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Deploy docs
|
|
|
|
uses: mhausenblas/mkdocs-deploy-gh-pages@master
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
CONFIG_FILE: docs/mkdocs.yml
|
|
|
|
EXTRA_PACKAGES: build-base
|