Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
rachfop committed Dec 21, 2023
1 parent cdcc5bd commit 321dd7f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/delete-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
6 changes: 0 additions & 6 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
rdme: docs v1.0 --key=${{ secrets.README_API_KEY }} --version=${{ env.BRANCH_VERSION }}

0 comments on commit 321dd7f

Please sign in to comment.