From 49ada34a2722efded8ae16119c0f078e4db96f8c Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Wed, 1 Sep 2021 12:51:38 +0200 Subject: [PATCH] fix: render themes on docs deploy resolves #912 --- .github/workflows/docs.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index f18b759b1482..588887dc2c04 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -16,7 +16,24 @@ jobs: - uses: actions/checkout@v2 with: submodules: true - - name: Build And Deploy 🚀 + persist-credentials: false + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.16 + - name: Build oh-my-posh 🔧 + run: | + cd src + go build -o ./bin/oh-my-posh + cd .. + - name: Render themes 🎨 + run: | + export PATH="$PWD/src/bin:$PATH" + cd docs + npm install + npm run themes + cd .. + - name: Build Docs And Deploy 🚀 id: builddeploy uses: Azure/static-web-apps-deploy@v1 with: