Migrate from Travis CI to GitHub Actions

This commit is contained in:
Gabriel Arazas 2022-05-13 18:07:40 +08:00
parent 653c4d04ff
commit 60ca71a357
2 changed files with 21 additions and 0 deletions

19
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: "Build demo"
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v17
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
- run: nix develop -c hugo -s ./exampleSite/
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.3.3
with:
branch: gh-pages
folder: exampleSite/public

View File

@ -21,6 +21,8 @@ and this project adheres to https://semver.org/spec/v2.0.0.html[Semantic Version
* Move the example site into the project for easier testing and development. * Move the example site into the project for easier testing and development.
* Migrate from Travis CI to GitHub Actions.
=== Removed === Removed