Skip to content

Commit c502754

Browse files
committed
fix preview
1 parent 5775f5e commit c502754

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

micropython/build.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@ REPO=micropython
1010
FULLNAME=micropython-${VERSION}.tar.xz
1111
OUTPUT=$2/${FULLNAME}
1212

13-
REVISION="micropython-${VERSION}"
1413
LAST_REVISION="${3:-}"
1514

15+
if [[ $VERSION == 'preview' ]]; then
16+
REVISION="micropython-preview-$(date +%Y%m%d)"
17+
else
18+
REVISION="micropython-${VERSION}"
19+
fi;
20+
1621
DEST="/opt/compiler-explorer/${REVISION}"
1722

1823
initialise "${REVISION}" "${OUTPUT}" "${LAST_REVISION}"

0 commit comments

Comments
 (0)