From 1294914ff111918d66c1b6359d9d2a3e9dd6031c Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Mon, 8 Apr 2024 09:44:17 +0200 Subject: [PATCH] release: version docs Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- .github/workflows/release.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 39cff0e929..7cc0d6ed38 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -110,6 +110,22 @@ jobs: with: ref: main path: contrast-main + - uses: ./.github/actions/setup_nix + with: + githubToken: ${{ secrets.GITHUB_TOKEN }} + cachixToken: ${{ secrets.CACHIX_AUTH_TOKEN }} + - name: Configure git + run: | + git config --global user.name "edgelessci" + git config --global user.email "edgelessci@users.noreply.github.com" + - name: Create docs release + working-directory: contrast-main + run: | + nix run .#yarn install + nix run .#yarn docusaurus docs:version ${{ needs.process-inputs.outputs.WITHOUT_V }} + git commit -am "docs: release ${{ needs.process-inputs.outputs.WITHOUT_V }}" + # Clean up auxiliary files, so next steps run on a clean tree + git clean -fx :/ - name: Bump flake version to post release patch pre-version id: bump uses: ./contrast-working/.github/actions/bump_version # Run action from working branch!