Skip to content

Commit ef620ad

Browse files
authored
ci: started migrating to GitHub Actions (from Travis) (#27)
1 parent 8f0c2a6 commit ef620ad

File tree

6 files changed

+4798
-870
lines changed

6 files changed

+4798
-870
lines changed

.github/workflows/pages.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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/[email protected]
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: [email protected]

.travis.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ build-superuser:
1717
build-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}/

deploy.sh

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)