Skip to content

Commit

Permalink
REMOVE_ME: use env var FOLDER for replacing conf
Browse files Browse the repository at this point in the history
Signed-off-by: Giovanni Liva <[email protected]>
  • Loading branch information
thisthat committed Nov 13, 2023
1 parent c6883ed commit 8dee35e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,24 @@ jobs:
- name: Copy old docs into main branch status
run: |
# Copy only the docs folder into the current documentation status from main
ls -al ${{ env.PAGE_DIR }}/docs/content/en/
cp -R ${{ env.PAGE_DIR }}/docs/content/en/docs-* "./docs/content/en/"
ls -al ./docs/content/en/
- name: Copy documentation site to page
env:
FOLDER: "${{ env.PAGE_DIR }}/docs/content/en/docs"
run: |
# clean page branch status
rm -rf ${{ env.PAGE_DIR }}/docs
cp -R ./docs ${{ env.PAGE_DIR }}/docs
# mark the new live version with the release tag
echo "${{ inputs.tag_name }}" > "${{ env.PAGE_DIR }}/docs/content/en/docs/version"
echo "${{ inputs.tag_name }}" > "${FOLDER}/version"
sed -i 's/currentversion: main/currentversion: ${{ inputs.tag_name }}/g' "${FOLDER}/_index.md"
# copy netlify conf
cp ./netlify.toml ${{ env.PAGE_DIR }}/netlify.toml
echo "========"
cat "${FOLDER}/version"
echo "========"
cat "${FOLDER}/_index.md"
- name: Push content
Expand Down

0 comments on commit 8dee35e

Please sign in to comment.