From 5762480ce5b3008e3efa9d1dab4e292915f1522f Mon Sep 17 00:00:00 2001 From: "Birrer, Iwan" Date: Thu, 13 Feb 2025 08:40:09 +0100 Subject: [PATCH] chore: deploy docs from release tags - support creating releases from release branch - disable docs deployment for insider releases --- .github/workflows/insider-release.yml | 6 ------ .github/workflows/variables.yml | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/variables.yml diff --git a/.github/workflows/insider-release.yml b/.github/workflows/insider-release.yml index ee8a1049e..cf4d10362 100644 --- a/.github/workflows/insider-release.yml +++ b/.github/workflows/insider-release.yml @@ -36,9 +36,3 @@ jobs: npm publish --tag=insider --access=public libraries/ui-library-angular/dist/ui-library-angular/ env: NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} - - - name: 'Deploy Documentation' - uses: JamesIves/github-pages-deploy-action@v4 - with: - folder: docs/.vitepress/dist - target-folder: docs diff --git a/.github/workflows/variables.yml b/.github/workflows/variables.yml new file mode 100644 index 000000000..91b8707b4 --- /dev/null +++ b/.github/workflows/variables.yml @@ -0,0 +1,21 @@ +name: Display Variables + +on: + workflow_dispatch: + inputs: + version: + description: 'The version to release. Format vx.x.x(-[rc|beta].x)' + required: true + type: string + push: + +jobs: + display-variables: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: 'Display variables' + run: | + echo "github.ref_name: ${{ github.ref_name }}" + echo "github.ref: ${{ github.ref }}" + echo "rev-parse: $(git rev-parse --abbrev-ref HEAD)"