Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
icmoldovan committed May 24, 2024
1 parent 558ab9e commit 3a37b5e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: CI
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ docs/17.2 ]
branches: [ docs/17.1 ]
pull_request:
branches: [ docs/17.2 ]
branches: [ docs/17.1 ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
]
}
],
"dest": "_site/17.2",
"dest": "_site/17.1",
"globalMetadataFiles": [],
"fileMetadataFiles": [],
"filemetadata":
Expand Down
2 changes: 1 addition & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Find more of our code samples on [GitHub](https://github.com/RWS/trados-studio-a

### [<Var:ProductName> 2024 - API 18.0](http://developers.rws.com/studio-api-docs/index.html)

### [<Var:ProductName> 2022 - API 17.1](http://developers.rws.com/studio-api-docs/17.1/index.html)
### [<Var:ProductName> 2022 - API 17.2](http://developers.rws.com/studio-api-docs/17.2/index.html)

### [<Var:ProductName> 2022 - API 17.0](http://developers.rws.com/studio-api-docs/17.0/index.html)

Expand Down
8 changes: 4 additions & 4 deletions releaseDocs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ if($checkBranch){
}

git checkout -b gh-pages_temp
git rm ".\17.2\*" -r
mkdir "17.2"
git rm ".\17.1\*" -r
mkdir "17.1"
write-host "Copy documentation into the repo"
Copy-Item "$SOURCE_DIR\_site\17.2\*" .\17.2\ -Recurse -force
Copy-Item "$SOURCE_DIR\_site\17.1\*" .\17.1\ -Recurse -force

write-host "Push the new docs to the remote branch"
git config --local user.email "github-actions[bot]@users.noreply.sdl.com"
git config --local user.name "github-actions[bot]"
git add .\17.2 -A
git add .\17.1 -A
git commit -m "Update generated documentation"
git push "$remote_repo" HEAD:gh-pages_temp
Write-Output (${TOKEN}) | gh auth login --with-token
Expand Down

0 comments on commit 3a37b5e

Please sign in to comment.