diff --git a/.github/workflows/create-version.yml b/.github/workflows/create-version.yml index b426c3d..28e80ba 100644 --- a/.github/workflows/create-version.yml +++ b/.github/workflows/create-version.yml @@ -20,4 +20,4 @@ jobs: - name: Create version of docs for branch 🚀 uses: readmeio/rdme@v8 with: - rdme: versions:create 1.0-${{ env.BRANCH_VERSION }} --key=${{ secrets.README_API_KEY }} --fork=1.0 --main=false --beta=true --deprecated=false --isPublic=false + rdme: versions:create v1.0-${{ env.BRANCH_VERSION }} --key=${{ secrets.README_API_KEY }} --fork=1.0 --main=false --beta=true --deprecated=false --isPublic=false diff --git a/.github/workflows/delete-version.yml b/.github/workflows/delete-version.yml index 6a29472..4b6334a 100644 --- a/.github/workflows/delete-version.yml +++ b/.github/workflows/delete-version.yml @@ -21,4 +21,4 @@ jobs: - name: Delete version of docs for branch (if branch is deleted) 🚀 uses: readmeio/rdme@v8 with: - rdme: versions:delete 1.0-${{ env.BRANCH_VERSION }} --key=${{ secrets.README_API_KEY }} + rdme: versions:delete v1.0-${{ env.BRANCH_VERSION }}--key=${{ secrets.README_API_KEY }} diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 18380fb..2b23805 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -16,12 +16,6 @@ jobs: - name: Check out repo 📚 uses: actions/checkout@v3 - - name: Generate branch version string - run: | - BRANCH_NAME="${{ github.head_ref || github.ref || github.event.ref }}" - BRANCH_VERSION=$(echo $BRANCH_NAME | tr -cd '0-9.') - echo "BRANCH_VERSION=$BRANCH_VERSION" >> $GITHUB_ENV - - name: Run `docs` command 🚀 uses: readmeio/rdme@v8 with: diff --git a/.github/workflows/update-version.yml b/.github/workflows/update-version.yml index 38ebe53..d04f028 100644 --- a/.github/workflows/update-version.yml +++ b/.github/workflows/update-version.yml @@ -18,9 +18,9 @@ jobs: - name: DryRun for debugging uses: readmeio/rdme@v8 with: - rdme: docs 1.0-${{ env.BRANCH_VERSION }} --key=${{ secrets.README_API_KEY }} --dryRun + rdme: docs v1.0 --key=${{ secrets.README_API_KEY }} --version=${{ env.BRANCH_VERSION }} --dryRun - name: Update version of docs for branch 🚀 uses: readmeio/rdme@v8 with: - rdme: docs 1.0-${{ env.BRANCH_VERSION }} --key=${{ secrets.README_API_KEY }} \ No newline at end of file + rdme: docs v1.0 --key=${{ secrets.README_API_KEY }} --version=${{ env.BRANCH_VERSION }} \ No newline at end of file