git.iko.soy/typeable/pandoc
on master help sign in
Nightly - use directory instead of suffix with date.
5f0e185John MacFarlane
.github/workflows/nightly.yml+7−13
@@ -28,11 +28,10 @@ jobs:
28 strip $HOME/.cabal/bin/pandoc-citeproc
28 strip $HOME/.cabal/bin/pandoc-citeproc
29 - name: Install artifact
29 - name: Install artifact
30 run: |
30 run: |
31− export SUFFIX=nightly-$(date +%Y-%m-%d)
31+ export ARTIFACTS=nightly-linux/pandoc-nightly-linux-$(date +%Y-%m-%d)
32− export ARTIFACTS=nightly-linux
33 mkdir -p ${ARTIFACTS}
32 mkdir -p ${ARTIFACTS}
34− cp $HOME/.cabal/bin/pandoc ${ARTIFACTS}/pandoc-${SUFFIX}
33+ cp $HOME/.cabal/bin/pandoc ${ARTIFACTS}/
35− cp $HOME/.cabal/bin/pandoc-citeproc ${ARTIFACTS}/pandoc-citeproc-${SUFFIX}
34+ cp $HOME/.cabal/bin/pandoc-citeproc ${ARTIFACTS}/
36 cp COPYRIGHT ${ARTIFACTS}/
35 cp COPYRIGHT ${ARTIFACTS}/
37 echo "Built from ${GITHUB_SHA}" > ${ARTIFACTS}/README.nightly.txt
36 echo "Built from ${GITHUB_SHA}" > ${ARTIFACTS}/README.nightly.txt
38 - uses: actions/upload-artifact@master
37 - uses: actions/upload-artifact@master
@@ -58,17 +57,13 @@ jobs:
58 shell: cmd
57 shell: cmd
59 run: |
58 run: |
60 for /f %%a in ('powershell -Command "Get-Date -format yyyy-MM-dd"') do set THEDATE=%%a
59 for /f %%a in ('powershell -Command "Get-Date -format yyyy-MM-dd"') do set THEDATE=%%a
61− set SUFFIX=nightly-%THEDATE%
60+ set ARTIFACTS=nightly-windows\pandoc-nightly-windows-%THEDATE%
62− set ARTIFACTS=nightly-windows
63 mkdir %ARTIFACTS%
61 mkdir %ARTIFACTS%
64 stack build pandoc pandoc-citeproc
62 stack build pandoc pandoc-citeproc
65 forfiles /P .\.stack-work\install /M pandoc*.exe /S /C "cmd /C copy @path %ARTIFACTS%"
63 forfiles /P .\.stack-work\install /M pandoc*.exe /S /C "cmd /C copy @path %ARTIFACTS%"
66 copy COPYRIGHT %ARTIFACTS%
64 copy COPYRIGHT %ARTIFACTS%
67 ren %ARTIFACTS%\COPYRIGHT COPYRIGHT.txt
65 ren %ARTIFACTS%\COPYRIGHT COPYRIGHT.txt
68 dir %ARTIFACTS%
66 dir %ARTIFACTS%
69− ren %ARTIFACTS%\pandoc.exe pandoc-%SUFFIX%.exe
70− ren %ARTIFACTS%\pandoc-citeproc.exe pandoc-citeproc-%SUFFIX%.exe
71− dir %ARTIFACTS%
72 echo Built from %GITHUB_SHA% > %ARTIFACTS%\README.nightly.txt
67 echo Built from %GITHUB_SHA% > %ARTIFACTS%\README.nightly.txt
73 - uses: actions/upload-artifact@master
68 - uses: actions/upload-artifact@master
74 with:
69 with:
@@ -91,13 +86,12 @@ jobs:
91 ./stack build --dependencies-only pandoc pandoc-citeproc
86 ./stack build --dependencies-only pandoc pandoc-citeproc
92 - name: Build artifacts
87 - name: Build artifacts
93 run: |
88 run: |
94− export SUFFIX=nightly-$(date +%Y-%m-%d)
89+ export ARTIFACTS=nightly-macos/pandoc-nightly-macos-$(date +%Y-%m-%d)
95− export ARTIFACTS=nightly-macos
96 mkdir -p ${ARTIFACTS}
90 mkdir -p ${ARTIFACTS}
97 ./stack build pandoc pandoc-citeproc
91 ./stack build pandoc pandoc-citeproc
98 for f in $(find .stack-work/install -name 'pandoc*' -perm +001 -type f); do cp $f ${ARTIFACTS}/; done
92 for f in $(find .stack-work/install -name 'pandoc*' -perm +001 -type f); do cp $f ${ARTIFACTS}/; done
99− mv ${ARTIFACTS}/pandoc ${ARTIFACTS}/pandoc-${SUFFIX}
93+ mv ${ARTIFACTS}/pandoc ${ARTIFACTS}/pandoc
100− mv ${ARTIFACTS}/pandoc-citeproc ${ARTIFACTS}/pandoc-citeproc-${SUFFIX}
94+ mv ${ARTIFACTS}/pandoc-citeproc ${ARTIFACTS}/pandoc-citeproc
101 cp COPYRIGHT ${ARTIFACTS}/
95 cp COPYRIGHT ${ARTIFACTS}/
102 echo "Built from ${GITHUB_SHA}" > ${ARTIFACTS}/README.nightly.txt
96 echo "Built from ${GITHUB_SHA}" > ${ARTIFACTS}/README.nightly.txt
103 - uses: actions/upload-artifact@master
97 - uses: actions/upload-artifact@master