diff --git a/.github/workflows/deploy-docs-latest.yml b/.github/workflows/deploy-docs-latest.yml index e569d06..25880ec 100644 --- a/.github/workflows/deploy-docs-latest.yml +++ b/.github/workflows/deploy-docs-latest.yml @@ -1,22 +1,31 @@ name: Deploy LATEST DOCS on: - workflow_run: - workflows: ["Bump version"] - types: - - completed + push: + branches: + - main + tags: + - '*' permissions: contents: write jobs: deploy: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Get Tag Name id: get_tag_name - run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + run: | + echo "Full ref: $GITHUB_REF" + TAG_NAME=${GITHUB_REF#refs/tags/} + echo "Tag name: $TAG_NAME" + echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV + - name: Display Tag Name - run: echo "The tag name is $TAG_NAME" + run: echo "The tag name is ${{ env.TAG_NAME }}" - - uses: actions/checkout@v4 - name: Configure Git Credentials run: | git config user.name github-actions[bot]