homebox/.github/workflows/publish.yaml

57 lines
1.3 KiB
YAML
Raw Normal View History

name: Publish Dockers
2022-08-29 18:30:36 -08:00
on:
push:
2022-09-09 10:49:51 -08:00
branches:
- main
2022-10-10 19:26:29 -08:00
release:
types:
- published
2022-08-29 18:30:36 -08:00
2022-09-09 11:12:25 -08:00
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
2022-08-29 18:30:36 -08:00
jobs:
2022-10-11 09:27:46 -08:00
deploy:
name: "Deploy Nightly to Fly.io"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
2022-10-11 09:27:46 -08:00
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
2022-09-09 11:12:25 -08:00
2022-10-11 08:57:34 -08:00
publish-nightly:
name: "Publish Nightly"
2022-10-11 09:48:36 -08:00
if: github.event_name != 'release'
2022-10-10 19:26:29 -08:00
uses: hay-kot/homebox/.github/workflows/partial-publish.yaml@main
with:
2022-10-11 08:57:34 -08:00
tag: nightly
2022-10-10 19:38:39 -08:00
secrets:
2022-10-10 19:39:15 -08:00
GH_TOKEN: ${{ secrets.CR_PAT }}
2022-09-08 15:09:26 -08:00
2022-10-11 08:57:34 -08:00
publish-tag:
name: "Publish Tag"
2022-10-11 09:09:17 -08:00
if: github.event_name == 'release'
2022-10-10 19:26:29 -08:00
uses: hay-kot/homebox/.github/workflows/partial-publish.yaml@main
with:
2022-10-11 08:57:34 -08:00
release: true
tag: ${{ github.event.release.tag_name }}
2022-10-10 19:38:39 -08:00
secrets:
2022-10-10 19:39:15 -08:00
GH_TOKEN: ${{ secrets.CR_PAT }}
2022-09-12 14:50:10 -08:00
deploy-docs:
name: Deploy docs
needs:
2022-10-10 19:27:06 -08:00
- publish-tag
2022-09-12 14:50:10 -08:00
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v3
2022-09-12 14:50:10 -08:00
- 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