Skip to content

Commit

Permalink
trying github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bbarker committed Jan 31, 2021
1 parent 610978a commit 67e406e
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# TODO: Dhall: https://gvolpe.github.io/blog/github-actions-nix-cachix-dhall/

name: "CI"
on:
pull_request:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/0b8799ecaaf0dc6b4c11583a3c96ca5b40fcfdfb.tar.gz # in 20.09, Oct 9 2020
- run: nix-shell -p spago nodejs purescript --command 'npm install && npm run build && npm run prod'
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Deploy"
on:
push:
branches:
- master
jobs:
buildDeploy:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v12
with:
# nix_path: nixpkgs=channel:nixos-20.09
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/0b8799ecaaf0dc6b4c11583a3c96ca5b40fcfdfb.tar.gz # in 20.09, Oct 9 2020
- name: Build 👷
run: nix-shell -p spago nodejs purescript --command 'IMG_VER=0.13.8_r2 ./scripts/dist_build.sh'
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: dist # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch
4 changes: 4 additions & 0 deletions .travis.yml → .travis.yml_backup
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# # Note - now using github actions instead
#

language: minimal

services:
Expand Down

0 comments on commit 67e406e

Please sign in to comment.