From c4a1109cae85976429a6ddeafd43ad2741bf7f2d Mon Sep 17 00:00:00 2001 From: Allain Magyar Date: Fri, 28 Jun 2024 21:12:12 -0300 Subject: [PATCH] fix: fixes page deployment Signed-off-by: Allain Magyar --- .github/workflows/deploy-pages.yml | 31 ++++++++++++++++++++++++++++++ .github/workflows/release.yml | 20 ------------------- 2 files changed, 31 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/deploy-pages.yml diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml new file mode 100644 index 0000000..2c5950b --- /dev/null +++ b/.github/workflows/deploy-pages.yml @@ -0,0 +1,31 @@ +name: Atala QA Release + +on: + workflow_dispatch: + push: + branches: + - "main" + +permissions: + id-token: write + +jobs: + release-page: + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + needs: release-atala-automation + + steps: + - name: Dokka + run: ./gradlew dokkaHtml + + - name: Upload GitHub Pages artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./docs + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2931a89..2a5c48d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,23 +50,3 @@ jobs: run: | npm install npx semantic-release - - - name: Dokka - run: ./gradlew dokkaHtml - - - name: Upload GitHub Pages artifact - uses: actions/upload-pages-artifact@v3 - with: - path: ./docs - - release-page: - runs-on: ubuntu-latest - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - needs: release-atala-automation - - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4