Skip to content

Commit 74aaf11

Browse files
CopilotWytamma
andcommitted
Replace Travis CI with GitHub Actions for Nikola site build
Co-authored-by: Wytamma <13726005+Wytamma@users.noreply.github.com>
1 parent ac52bd3 commit 74aaf11

File tree

4 files changed

+38
-23
lines changed

4 files changed

+38
-23
lines changed

.github/workflows/build-deploy.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
12+
steps:
13+
- name: Checkout source branch
14+
uses: actions/checkout@v4
15+
with:
16+
ref: src
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: '3.6'
22+
23+
- name: Install dependencies
24+
run: |
25+
pip install "Nikola[extras]"
26+
27+
- name: Build site
28+
run: |
29+
nikola build
30+
31+
- name: Deploy to master branch
32+
uses: peaceiris/actions-gh-pages@v3
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
publish_dir: ./output
36+
publish_branch: master
37+
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)