Nightly - fix date setting on windows.

This commit is contained in:
John MacFarlane 2019-09-19 09:09:41 -07:00
parent 3ef628d968
commit f150ec04a0

View file

@ -55,9 +55,9 @@ jobs:
- name: Build artifacts
shell: cmd
run: |
for /f "tokens=2,3,4 usebackq delims=:/ " %a in ('%date%') do set OURDATE=%%c-%%a-%%b
export SUFFIX=nightly-%OURDATE%
export ARTIFACTS=nightly-windows
for /f %%a in ('powershell -Command "Get-Date -format yyyy-MM-dd"') do set THEDATE=%%a
set SUFFIX=nightly-%THEDATE%
set ARTIFACTS=nightly-windows
mkdir %ARTIFACTS%
stack build pandoc pandoc-citeproc
forfiles /P .\.stack-work\install /M pandoc*.exe /S /C "cmd /C copy @path %ARTIFACTS%"