Added doc generation

This commit is contained in:
iko 2020-11-28 16:33:04 +03:00
parent 126d6754f6
commit 0d6e2b6ead
2 changed files with 22 additions and 1 deletions

View File

@ -12,16 +12,26 @@ jobs:
- uses: actions/checkout@v1
- uses: cachix/install-nix-action@v12
- name: Build
id: build
run: |
nix-build -A sawtooth-haskell-protos-src
# echo "::set-output name=result::$(realpath result)"
cp -r $(realpath result) sawtooth-haskell-protos-src
tar cvzf sawtooth-haskell-protos-src.tar.gz sawtooth-haskell-protos-src
rm result
- uses: actions/upload-artifact@v2
with:
name: docs
path: sawtooth-haskell-protos-src.tar.gz
- name: Build sources
run: |
nix-build -A sawtooth-haskell-protos-src
cp -r $(realpath result) sawtooth-haskell-protos-src
tar cvzf sawtooth-haskell-protos-src.tar.gz sawtooth-haskell-protos-src
- name: Build docs
run: |
nix-build -A build.doc
cp -r $(realpath result-doc)/share/doc/sawtooth-haskell-protos-0.0.0/html docs
tar cvzf docs.tar.gz docs
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
@ -30,3 +40,11 @@ jobs:
# title: ""
files: |
sawtooth-haskell-protos-src.tar.gz
docs.tar.gz
- name: Deploy docs
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: docs
FOLDER: docs
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"nixEnvSelector.nixShellConfig": "NOT_MODIFIED_ENV"
}