Skip to content
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
merged 4 commits into from
Apr 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/nightly_snapshot.yaml
Original file line number Diff line number Diff line change
@@ -332,7 +332,7 @@ 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
@@ -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,releases/[0-9]*\.[0-9]*\.[0-9]*/\(.*\),releases/${{ steps.version.outputs.VERSION }}/\1," www-releases/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/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/releases

- name: commit and push
run: |
Loading
Oops, something went wrong.