File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ # schedule:
5+ # * is a special character in YAML so you have to quote this string
6+ # - cron: '30 0 * * *'
7+ push :
8+ branches :
9+ - ' **' # matches all branches
10+ - ' !gh-pages' # excludes gh-pages
11+
12+ jobs :
13+ build-and-deploy :
14+ name : Build and deploy (py-${{ matrix.python_version }}, ruby-${{ matrix.ruby_version }})
15+ runs-on : ubuntu-latest
16+ strategy :
17+ matrix :
18+ ruby_version : ['2.7']
19+ python_version : ['3.9']
20+ steps :
21+ - name : Checkout 🛎️
22+ uses : actions/checkout@v2
23+ with :
24+ persist-credentials : false
25+ - name : Setup Ruby
26+ uses : ruby/setup-ruby@v1
27+ with :
28+ ruby-version : ${{ matrix.ruby_version }}
29+ bundler-cache : true
30+ - name : Setup Python
31+ uses : actions/setup-python@v1
32+ with :
33+ python-version : ${{ matrix.python_version }}
34+ - name : Install dependencies
35+ run : |
36+ make install
37+ sudo npm install --global pug pug-cli
38+ - name : Build
39+ run : |
40+ make build
41+ touch build-superuser/.nojekyll
42+ - name : Deploy 🚀
43+ uses : JamesIves/github-pages-deploy-action@4.1.8
44+ if : github.ref == 'refs/heads/master'
45+ with :
46+ branch : gh-pages # The branch the action should deploy to.
47+ folder : build-superuser # The folder the action should deploy.
48+ git-config-name : GitHub Actions
49+ git-config-email : noreply@github.com
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ build-superuser:
1717build-thankful :
1818 $(eval DEST := "build-thankful")
1919 mkdir -p ${DEST}
20- echo " getthankful.io" > ${DEST} /CNAME
20+ # echo "getthankful.io" > ${DEST}/CNAME
2121 npm run pug -- -o ${DEST} $(PUG_OPTS ) thankful
2222 npm run sass -- scss/index.scss ${DEST} /index.css
2323 cp -r media ${DEST} /
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments