Skip to content

Commit a3a1ccf

Browse files
authored
Merge pull request #28 from python-friends/copilot/replace-travis-with-github-actions
Replace Travis CI with GitHub Actions for Nikola site build
2 parents f57e2a9 + aab1eee commit a3a1ccf

File tree

4 files changed

+40
-23
lines changed

4 files changed

+40
-23
lines changed

.github/workflows/build-deploy.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build and Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- src
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
14+
steps:
15+
- name: Checkout source branch
16+
uses: actions/checkout@v4
17+
with:
18+
ref: src
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: '3.6'
24+
25+
- name: Install dependencies
26+
run: |
27+
pip install "Nikola[extras]"
28+
29+
- name: Build site
30+
run: |
31+
nikola build
32+
33+
- name: Deploy to master branch
34+
uses: peaceiris/actions-gh-pages@v3
35+
with:
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
publish_dir: ./output
38+
publish_branch: master
39+
force_orphan: true

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# python-friends blog source
22

3-
[![Build Status](https://travis-ci.org/python-friends/python-friends.github.io.svg?branch=src)](https://travis-ci.org/python-friends/python-friends.github.io)
3+
[![Build and Deploy](https://github.com/python-friends/python-friends.github.io/actions/workflows/build-deploy.yml/badge.svg?branch=src)](https://github.com/python-friends/python-friends.github.io/actions/workflows/build-deploy.yml)

github_deploy_key_python_friends_python_friends_github_io.enc

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)