@@ -35,40 +35,42 @@ jobs:
3535 # fetch-depth: 1
3636 # submodules: true
3737 # Checkout other repo
38- - name : Checkout other repo
38+ - name : 检出其他仓库Checkout other repo
3939 uses : actions/checkout@v4
4040 with :
41- repository : linjonh/TechBlog
42- branch : main
41+ repository : linjonh/ffmpeg-docs-website
42+ branch : pytorch_tutorial_website
4343 fetch-depth : 0
44- path : TechBlog
44+ token : ${{ secrets.PAT_TOKEN }}
45+ path : pytorch-tutorial
4546 - name : List checked out files
4647 run : |
47- ls -alh TechBlog || echo "TechBlog not found"
48- cd TechBlog
48+ ls -alh pytorch-tutorial || echo "pytorch-tutorial not found"
49+ cd pytorch-tutorial
4950 git branch -a
50- git checkout -b main origin/main
51+ git checkout -b pytorch_tutorial_website origin/pytorch_tutorial_website
5152 ls -alh
52- # build
53- - name : Set up Ruby
54- uses : ruby/setup-ruby@v1
55- with :
56- ruby-version : ' 3.4.2' # 替换为你项目实际使用的版本
57- bundler-cache : true
58- # Install ruby dependencies
59- - name : Install dependencies and build site
60- run : |
61- pwd
62- ls -lh
63- cd TechBlog
64- git branch -a
65- git checkout main
66- gem install bundler
67- bundle install --jobs 4 --retry 3
68- # build site
69- bundle exec jekyll build -d "_site" --trace
70- env :
71- JEKYLL_ENV : production
53+ # #build
54+ # - name: Set up Ruby
55+ # uses: ruby/setup-ruby@v1
56+ # with:
57+ # ruby-version: '3.4.2' # 替换为你项目实际使用的版本
58+ # bundler-cache: true
59+
60+ # # Install ruby dependencies
61+ # - name: Install dependencies and build site
62+ # run: |
63+ # pwd
64+ # ls -lh
65+ # cd TechBlog
66+ # git branch -a
67+ # git checkout main
68+ # gem install bundler
69+ # bundle install --jobs 4 --retry 3
70+ # # build site
71+ # bundle exec jekyll build -d "_site" --trace
72+ # env:
73+ # JEKYLL_ENV: production
7274 # Setup pages
7375 - name : Setup Pages
7476 id : pages
7779 - name : Upload site artifact
7880 uses : actions/upload-pages-artifact@v3
7981 with :
80- path : " TechBlog/_site "
82+ path : " pytorch-tutorial/html_zh_CN "
8183 deploy :
8284 environment :
8385 name : github-pages
0 commit comments