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

Updating files to keep up with template #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Fix URLs for PR preview deployment (pull request previews)
if: github.event_name == 'pull_request'
run: |
echo "PREVIEW_FRANKLIN_WEBSITE_URL=https://tutorial-template.netlify.app/previews/PR${{ github.event.number }}/" >> $GITHUB_ENV
echo "PREVIEW_FRANKLIN_WEBSITE_URL=https://introduction-to-nlpmodelsknitro.netlify.app/previews/PR${{ github.event.number }}/" >> $GITHUB_ENV
echo "PREVIEW_FRANKLIN_PREPATH=previews/PR${{ github.event.number }}" >> $GITHUB_ENV

# NOTE: Python is necessary for the pre-rendering (minification) step
Expand All @@ -40,7 +40,7 @@ jobs:
with:
version: 1

- name: Get dependencies from jso-docs.github.io
- name: Get dependencies from JuliaSmoothOptimizers.github.io
run: bash getdeps.sh

- name: Build
Expand Down Expand Up @@ -80,4 +80,4 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { issue: { number: issue_number }, repo: { owner, repo } } = context;
github.issues.createComment({ issue_number, owner, repo, body: 'Once the build has completed, you can preview your PR at this URL: https://tutorial-template.netlify.app/previews/PR${{ github.event.number }}/' });
github.issues.createComment({ issue_number, owner, repo, body: 'Once the build has completed, you can preview your PR at this URL: https://introduction-to-nlpmodelsknitro.netlify.app/previews/PR${{ github.event.number }}/' });
10 changes: 5 additions & 5 deletions getdeps.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash
# Script to clone the jso-docs main repo and get the necessary folders
wget https://github.com/jso-docs/jso-docs.github.io/archive/refs/heads/main.zip
# Script to clone the JuliaSmoothOptimizers main repo and get the necessary folders
wget https://github.com/JuliaSmoothOptimizers/JuliaSmoothOptimizers.github.io/archive/refs/heads/main.zip
unzip main.zip
if [ -z "$CI" ]; then
rm -rf _assets _layout _libs _sass
mv -f jso-docs.github.io-main/{_assets,_layout,_sass,_libs,package.json,config.md,utils.jl} .
mv -f JuliaSmoothOptimizers.github.io-main/{_assets,_layout,_sass,_libs,package.json,config.md,utils.jl} .
else
mv -f jso-docs.github.io-main/{_layout,_libs,_sass,package.json,config.md,utils.jl} .
mv -f JuliaSmoothOptimizers.github.io-main/{_layout,_libs,_sass,package.json,config.md,utils.jl} .
fi
rm -rf jso-docs.github.io-main main.zip
rm -rf JuliaSmoothOptimizers.github.io-main main.zip