Skip to content

Commit

Permalink
ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
fubark committed Jan 6, 2024
1 parent cacb854 commit 5a2eaf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gen-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:

- name: Generate docs.
run: |
LD_LIBRARY_PATH=`pwd`/md4c/build/src zig-out/bin/cyber docs/gen-docs.cy -version ${{ 'v' + env.SHORT_VERSION + '-dev' }}
LD_LIBRARY_PATH=`pwd`/md4c/build/src zig-out/bin/cyber docs/gen-docs.cy -version v${{ env.SHORT_VERSION }}-dev
mkdir -p docs/public
mv docs/docs.html docs/public/index.html
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/latest-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -362,14 +362,14 @@ jobs:
- name: Generate docs. (Release)
if: startsWith(github.ref, 'refs/tags/')
run: |
LD_LIBRARY_PATH=`pwd`/md4c/build/src zig-out/bin/cyber docs/gen-docs.cy -version ${{'v' + env.SHORT_VERSION}}
LD_LIBRARY_PATH=`pwd`/md4c/build/src zig-out/bin/cyber docs/gen-docs.cy -version v${{ env.SHORT_VERSION }}
mv docs/docs-modules.md docs.md
mv docs/docs.html docs.html
- name: Generate docs. (Dev)
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
run: |
LD_LIBRARY_PATH=`pwd`/md4c/build/src zig-out/bin/cyber docs/gen-docs.cy -version "${{'v' + env.SHORT_VERSION + '-dev ' + env.BUILD + '-' + env.COMMIT}}"
LD_LIBRARY_PATH=`pwd`/md4c/build/src zig-out/bin/cyber docs/gen-docs.cy -version "${{ format('v{0}-dev {1}-{2}', env.SHORT_VERSION, env.BUILD, env.COMMIT) }}"
mv docs/docs-modules.md docs.md
mv docs/docs.html docs.html
Expand Down

0 comments on commit 5a2eaf9

Please sign in to comment.