From f3bb86d90595bab519ea9bcc36dad7b7238d98cf Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Mon, 3 Apr 2023 14:10:45 -0800 Subject: [PATCH] change publish workflow (#390) --- .github/workflows/publish.yaml | 27 --------------------------- .github/workflows/tag.yaml | 27 ++++++++++++++++++++++++++- 2 files changed, 26 insertions(+), 28 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 5adc0ab..ece397f 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 f36d6df..45adaa2 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