split CI jobs
This commit is contained in:
parent
5a58b5a508
commit
49f627a025
|
@ -0,0 +1,20 @@
|
||||||
|
name: Docs
|
||||||
|
|
||||||
|
on:
|
||||||
|
- push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2.4.0
|
||||||
|
- uses: cachix/install-nix-action@v15
|
||||||
|
with:
|
||||||
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
- name: publish
|
||||||
|
run: make publish
|
||||||
|
- name: Deploy
|
||||||
|
uses: JamesIves/github-pages-deploy-action@4.1.0
|
||||||
|
with:
|
||||||
|
BRANCH: gh-pages
|
||||||
|
FOLDER: docs/book
|
|
@ -1,8 +1,9 @@
|
||||||
name: CI
|
name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
- pull_request
|
push:
|
||||||
- push
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux-binary:
|
linux-binary:
|
||||||
|
@ -40,17 +41,3 @@ jobs:
|
||||||
paisa-*
|
paisa-*
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2.4.0
|
|
||||||
- uses: cachix/install-nix-action@v15
|
|
||||||
with:
|
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
|
||||||
- name: publish
|
|
||||||
run: make publish
|
|
||||||
- name: Deploy
|
|
||||||
uses: JamesIves/github-pages-deploy-action@4.1.0
|
|
||||||
with:
|
|
||||||
BRANCH: gh-pages
|
|
||||||
FOLDER: docs/book
|
|
Loading…
Reference in New Issue