From ed0911b22b817bc5bee163f64819f4f30348f53a Mon Sep 17 00:00:00 2001 From: Lukas Herzberger Date: Sun, 21 Apr 2024 21:11:11 +0200 Subject: [PATCH] Update deploy-docs.yml --- .github/workflows/deploy-docs.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 162dd2e..f1889cd 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -4,7 +4,8 @@ name: Deploy docs on: # Runs on pushes targeting the default branch push: - branches: ["main"] + tags: + - '*' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -37,6 +38,10 @@ jobs: run: npm install - name: Build Docs run: npm run docs + - name: Publish dist folder with docs + run: | + mkdir -p docs/${{ github.ref_name }} + cp -r dist docs/${{ github.ref_name }}/dist - name: Setup Pages uses: actions/configure-pages@v5 - name: Upload artifact