-
Notifications
You must be signed in to change notification settings - Fork 643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upload docs to releases.slint.dev in www-releases GH repo #4995
Merged
+4
−4
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
a68daa6
Upload docs to releases.slint.dev in www-releases GH repo
aurindam 632aca1
Update nightly to upload releases and snapshots to www-releases
aurindam 0c79e6f
Adjust redirections in releases folder in www-releases
aurindam a631de0
Update versions.txt in releases subfolder
aurindam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -332,11 +332,11 @@ jobs: | |
run: | | ||
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
git config --global user.name "${GITHUB_ACTOR}" | ||
ssh-agent sh -c 'echo "${{ secrets.WWW_PUBLISH_SSH_KEY }}" | ssh-add - && git clone git@github.com:slint-ui/www.git --depth 1' | ||
ssh-agent sh -c 'echo "${{ secrets.WWW_PUBLISH_SSH_KEY }}" | ssh-add - && git clone git@github.com:slint-ui/www-releases.git --depth 1' | ||
cd www | ||
|
||
if [[ "${{ github.event.inputs.release }}" == "true" ]]; then | ||
output_path="releases/${{ steps.version.outputs.VERSION }}" | ||
output_path="${{ steps.version.outputs.VERSION }}" | ||
else | ||
output_path="snapshots/${GITHUB_REF##*/}" | ||
fi | ||
|
@@ -368,7 +368,7 @@ jobs: | |
cp -a ../target/doc/* $output_path/docs/rust/ | ||
|
||
# Fix up link to Slint language documentation | ||
sed -i "s!https://slint.dev/releases/.*/docs/!../../!" $output_path/docs/rust/slint/*.html | ||
sed -i "s!https://releases.slint.dev/.*/docs/!../../!" $output_path/docs/rust/slint/*.html | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The link are still using slint.dev in the docs, so either leave it as it was before, or repleace all other occurrences in the repo |
||
|
||
for lang in rust cpp node; do | ||
mkdir -p $output_path/docs/tutorial/$lang | ||
|
@@ -382,16 +382,16 @@ jobs: | |
- name: Adjust redirections | ||
if: github.event.inputs.release == 'true' | ||
run: | | ||
sed -i "/1.0.2/! s,releases/[0-9]*\.[0-9]*\.[0-9]*/\(.*\),releases/${{ steps.version.outputs.VERSION }}/\1," www/data/_redirects | ||
sed -i "/1.0.2/! s,[0-9]*\.[0-9]*\.[0-9]*/\(.*\),${{ steps.version.outputs.VERSION }}/\1," www-releases/_redirects | ||
|
||
- name: Adjust slintpad default tag | ||
if: github.event.inputs.release == 'true' | ||
run: sed -i "s,XXXX_DEFAULT_TAG_XXXX,v${{ steps.version.outputs.VERSION }}," www/releases/${{ steps.version.outputs.VERSION }}/editor/assets/*.js | ||
run: sed -i "s,XXXX_DEFAULT_TAG_XXXX,v${{ steps.version.outputs.VERSION }}," www-releases/${{ steps.version.outputs.VERSION }}/editor/assets/*.js | ||
|
||
- name: Update versions.txt | ||
if: github.event.inputs.release == 'true' | ||
run: ls -1 | grep -v versions.txt | sort --version-sort -r > versions.txt | ||
working-directory: www/releases | ||
working-directory: www-releases | ||
|
||
- name: commit and push | ||
run: | | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note that this will now create the snapshots in the www-release repo. Is that intentional?