Skip to content

Commit

Permalink
change publish workflow (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
hay-kot committed Apr 3, 2023
1 parent 4dd925c commit f3bb86d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 28 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
push:
branches:
- main
release:
types:
- published

env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
Expand All @@ -29,28 +26,4 @@ jobs:
secrets:
GH_TOKEN: ${{ secrets.CR_PAT }}

publish-tag:
name: "Publish Tag"
if: github.event_name == 'release'
uses: hay-kot/homebox/.github/workflows/partial-publish.yaml@main
with:
release: true
tag: ${{ github.event.release.tag_name }}
secrets:
GH_TOKEN: ${{ secrets.CR_PAT }}

deploy-docs:
name: Deploy docs
needs:
- publish-tag
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v3

- 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
27 changes: 26 additions & 1 deletion .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
name: "Frontend and End-to-End Tests"
uses: hay-kot/homebox/.github/workflows/partial-frontend.yaml@main


goreleaser:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -49,3 +48,29 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish-tag:
name: "Publish Tag"
if: github.event_name == 'release'
uses: hay-kot/homebox/.github/workflows/partial-publish.yaml@main
with:
release: true
tag: ${{ github.ref }}
secrets:
GH_TOKEN: ${{ secrets.CR_PAT }}

deploy-docs:
name: Deploy docs
needs:
- publish-tag
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v3

- 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

0 comments on commit f3bb86d

Please sign in to comment.