-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #237 from nottoseethesun/whitepaper-economics-upda…
…te-and-edits Whitepaper economics update and edits
- Loading branch information
Showing
4 changed files
with
41 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
env: | ||
WHITEPAPER_FORMATS_DIR: whitepaper/formats | ||
WHITEPAPER_FILE_NAME_ROOT: gridcoin-whitepaper-draft | ||
WHITEPAPER_ARTIFACT_NAME: gridcoin-whitepaper | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Update package manager and install o/s level dependencies | ||
run: sudo apt update && sudo apt install nodejs npm | ||
- name: Install secondary dependencies; '--unsafe-perm' is necessary due to https://github.com/BlueHatbRit/mdpdf/issues/69 | ||
run: sudo npm install --unsafe-perm mdpdf -g | ||
- name: Checkout the project source code | ||
run: git checkout | ||
- name: List current workspace checkout | ||
run: ls -ail ${{ github.workspace }}/whitepaper/ && git status | ||
- name: Create the build directory | ||
run: mkdir -p ${{ github.workspace }}/build/${{ env.WHITEPAPER_FORMATS_DIR }} | ||
- name: Create the pdf-format whitepaper from the markdown source code | ||
run: | | ||
cd ${{ github.workspace }}/whitepaper && \ | ||
mdpdf ${{ env.WHITEPAPER_FILE_NAME_ROOT }}.md && \ | ||
mv ${{ env.WHITEPAPER_FILE_NAME_ROOT }}.pdf ${{ github.workspace }}/build/${{ env.WHITEPAPER_FORMATS_DIR }}/${{ env.WHITEPAPER_ARTIFACT_NAME }}.pdf | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: ${{ env.WHITEPAPER_ARTIFACT_NAME }} | ||
path: ${{ github.workspace }}/build/${{ env.WHITEPAPER_FORMATS_DIR }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.