mirror of
https://github.com/ilyakooo0/sawtooth-haskell-protos.git
synced 2024-09-11 06:25:43 +03:00
Added doc generation
This commit is contained in:
parent
126d6754f6
commit
0d6e2b6ead
20
.github/workflows/build_docs.yaml
vendored
20
.github/workflows/build_docs.yaml
vendored
@ -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
3
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"nixEnvSelector.nixShellConfig": "NOT_MODIFIED_ENV"
|
||||
}
|
Loading…
Reference in New Issue
Block a user