Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

change publish workflow (#390)

Haydenf3bb86d90595
diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml
index 5adc0ab7..ece397fc 100644
--- a/.github/workflows/publish.yaml
+++ b/.github/workflows/publish.yaml
@@ -4,9 +4,6 @@ on:
push:
branches:
- main
- release:
- types:
- - published
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
@@ -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
diff --git a/.github/workflows/tag.yaml b/.github/workflows/tag.yaml
index f36d6df9..45adaa22 100644
--- a/.github/workflows/tag.yaml
+++ b/.github/workflows/tag.yaml
@@ -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:
@@ -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
\ No newline at end of file