Skip to content

Commit 3ee7b1c

Browse files
authored
Bring back CCI job until GHA Push Issue Resolved
1 parent 2bf5036 commit 3ee7b1c

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.circleci/config.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: cimg/ruby:2.7-node
6+
steps:
7+
- run:
8+
name: Checkout
9+
command: |
10+
git init
11+
git remote add origin https://github.com/pytorch/pytorch.github.io
12+
git fetch --depth 1
13+
git checkout site
14+
- restore_cache:
15+
keys:
16+
- pytorch-gem-cache-{{ checksum "Gemfile.lock" }}
17+
- pytorch-gem-cache-
18+
- run:
19+
name: Bundle Install
20+
command: |
21+
bundle config set --local path 'vendor/bundle'
22+
bundle install
23+
- save_cache:
24+
key: pytorch-gem-cache-{{ checksum "Gemfile.lock" }}
25+
paths:
26+
- vendor/bundle
27+
- restore_cache:
28+
keys:
29+
- pytorch-yarn-{{ checksum "yarn.lock" }}
30+
- pytorch-yarn-
31+
- run:
32+
name: Yarn Install
33+
command: yarn install --cache-folder ~/.cache/yarn
34+
- run:
35+
name: Notedown Install
36+
command: sudo apt update && sudo apt install python3-pip && sudo -H pip3 install pyrsistent==0.16 notedown pyyaml -Iv nbformat==5.7
37+
- save_cache:
38+
key: pytorch-yarn-{{ checksum "yarn.lock" }}
39+
paths:
40+
- ~/.cache/yarn
41+
- run:
42+
name: Configure CircleCI Bot
43+
command: |
44+
git config --global user.email "facebook-circleci-bot@users.noreply.github.com"
45+
git config --global user.name "Website Deployment Script"
46+
- run:
47+
name: Build Jekyll site and push to master
48+
command: ./scripts/deploy-site.sh build
49+
50+
workflows:
51+
version: 2
52+
workflow-build:
53+
jobs:
54+
- build:
55+
filters:
56+
branches:
57+
only: site

0 commit comments

Comments
 (0)