From 7d6796f17375c1515e364e573ea696464bd06c30 Mon Sep 17 00:00:00 2001 From: danicheg Date: Sat, 20 Jan 2024 14:17:35 +0300 Subject: [PATCH 1/2] Tweak the approach of publishing the website to GH pages on CI --- .github/workflows/publish-website.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-website.yml b/.github/workflows/publish-website.yml index b1f581e..cb700d7 100644 --- a/.github/workflows/publish-website.yml +++ b/.github/workflows/publish-website.yml @@ -12,7 +12,11 @@ jobs: with: fetch-depth: 0 - uses: coursier/cache-action@v6 - - name: Publish ${{ github.ref }} - run: sbt docs/docusaurusCreateSite docs/docusaurusPublishGhpages - env: - GITHUB_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }} + - name: Build website + run: sbt docs/docusaurusCreateSite + - name: Publish website to GitHub Pages + uses: JamesIves/github-pages-deploy-action@v4 + with: + branch: gh-pages + folder: ./website/build + ssh-key: ${{ secrets.GIT_DEPLOY_KEY }} From 4057b0d2cee44c7ec1b1236eeab5ec3302debdda Mon Sep 17 00:00:00 2001 From: danicheg Date: Sat, 20 Jan 2024 14:18:19 +0300 Subject: [PATCH 2/2] Enable website publishing when pushing git tags --- .github/workflows/publish-website.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/publish-website.yml b/.github/workflows/publish-website.yml index cb700d7..81ba068 100644 --- a/.github/workflows/publish-website.yml +++ b/.github/workflows/publish-website.yml @@ -2,8 +2,7 @@ name: Deploy Website on: push: branches: [main] - # uncomment this once the website publishes well - # tags: ["*"] + tags: ["*"] jobs: publish: runs-on: ubuntu-latest