

Migrate Pelican Site CI/CD From Travis CI to GitHub Actions
source link: http://siongui.github.io/2020/12/02/migrate-pelican-site-ci-cd-from-travis-ci-to-github-actions/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Migrate Pelican Site CI/CD From Travis CI to GitHub Actions
December 02, 2020
Build and deploy Pelican site using GitHub Actions instead of Travis CI.
My original CI/CD file on Travis CI is:
sudo: required dist: bionic language: python python: - '3.8' branches: only: - master addons: apt: packages: - language-pack-en - language-pack-zh-hant - language-pack-th install: - pip install -r requirements.txt - make download script: - make publish deploy: provider: pages repo: siongui/siongui.github.io target_branch: master skip_cleanup: true github_token: $GITHUB_TOKEN local_dir: output on: branch: master
Summaries of above YAML config:
- Ubuntu machine/Python 3.8
- Install Ubuntu en/zh-hant/th language packs
- Install Pelican and Python packages using pip
- Build Pelican site using Makefile
- Deploy to another repo of GitHub Pages using Personal Access Token.
The following is the corresponding CI/CD file on GitHub Actions:
name: Pelican site CI on: push: branches: - master jobs: build: runs-on: ubuntu-latest steps: - name: Install language packs run: sudo apt-get install language-pack-en language-pack-zh-hant language-pack-th - uses: actions/[email protected] with: persist-credentials: false - uses: actions/setup-python@v2 with: python-version: '3.8' - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - name: Build site run: | make download make publish - name: Add nojekyll run: | touch ./output/.nojekyll - name: Deploy uses: JamesIves/[email protected] with: ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} REPOSITORY_NAME: siongui/siongui.github.io BRANCH: master FOLDER: output CLEAN: true
Tested on: Ubuntu Linux 20.04, Python 3.8.5, GitHub Actions.
References:
Recommend
-
16
Publish your Pelican blog on Github pages via Travis-CIPublish your Pelican blog on Github pages via Travis-CI Thu 09 January 2014This blog is powered by Pelican, and until recently I have rendered the HTML pages on my local machine...
-
8
Moving PHP and Laravel tests from Travis CI to GitHub ActionsScout APM is PHP application performance monitoring designed for developers. With tracing logic that ties issues back to the line of code causing...
-
12
How to Create Your First Static Site with Pelican and Jinja2Pelican is an incredibly well-built Python tool for cr...
-
7
声明一下!非原创,这是一篇翻译文章,发布于 GTCC 社区,一篇讲 CI 从 Travis 迁移到 GitHub-Actions 的英语文章, 我将它翻译成了中文,顺便学习了一下 GitHub Actions,如果你想了解作者和原文 🔽: 文章作者:m...
-
4
<?xml encoding="utf-8" ??>BackupBuddy is a WordPress migration plugin that lets you clone or transfer your website from one host to another. It is a premium plugin, easy to use, and offers multiple backup...
-
3
<?xml encoding="utf-8" ??>UpdraftPlus is a WordPress backup, clone, and restore plugin that makes it possible to migrate your website files safely from one server to another. It offers both free and premi...
-
11
<?xml encoding="utf-8" ??>Introduction WordPress website migration is an important step to take when changing hosts, or domains without losing any data during transfer. With multiple plugins of...
-
6
Build Website First add .travis.yml [11] in the root of your source repo. My configuration is as follows: l...
-
6
[Pelican] Add Build Timestamp to Pelican Site Automatically November 30, 2020 When w...
-
13
Migrate a WordPress site to DreamPress Overview The following describes various options to consider when migrating your WordPress site from another host to DreamPress. Fr...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK