Skip to content

Commit

Permalink
Improve deploy build
Browse files Browse the repository at this point in the history
  • Loading branch information
privat committed Jul 4, 2024
1 parent 717c007 commit ada4229
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- run: nitiwiki --render --force
- run: git fetch --unshallow
- run: make deploy
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ENV PATH /nit/bin/:$PATH
RUN make -C nit/contrib/nitiwiki

FROM ubuntu:24.04
RUN apt-get update && apt-get install -y libunwind8 libgc1 highlight pandoc
RUN apt-get update && apt-get install -y git libunwind8 libgc1 highlight pandoc wget unzip make texlive-latex-base lmodern texlive-latex-recommended texlive-latex-extra --no-install-recommends
COPY --from=0 /nit/contrib/nitiwiki/bin/nitiwiki /bin/nitiwiki
COPY --from=0 /nit/misc/highlight/nit.lang /usr/share/highlight/langDefs
RUN /bin/nitiwiki --help
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,17 @@ rebuild:
make -C pages/manual
git pull
nitiwiki --render --force -v

deploy: doc.zip man.zip
make -C pages/manual
unzip -o man.zip -d pages/tools
nitiwiki --render --force -v
unzip -o doc.zip -d tmp
mv tmp/nitc tmp/stdlib target/doc/

doc.zip:
wget https://nightly.link/nitlang/nit/workflows/master/test-ci/doc.zip

man.zip:
wget https://nightly.link/nitlang/nit/workflows/master/test-ci/man.zip

0 comments on commit ada4229

Please sign in to comment.