-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
name: 其他问题 | ||
about: 上面的模版无法归类的问题。使用问题请在 Discussions 区提问。 | ||
--- |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
|
||
# Online package will be in build/online. | ||
ONLINE_DIR=build/online | ||
ONLINE_FILENAME=sjtubeamer-online.zip | ||
|
||
# Generate the latest files first. | ||
cd src && l3build check && cd .. | ||
|
||
# A clean directory start. | ||
rm -rf ${ONLINE_DIR} | ||
mkdir -p ${ONLINE_DIR} | ||
|
||
# contrib | ||
cp -rv contrib ${ONLINE_DIR}/ | ||
|
||
# build | ||
mkdir -p ${ONLINE_DIR}/build | ||
echo > ${ONLINE_DIR}/build/.gitkeep | ||
|
||
# minimal workset | ||
cp -rv vi ${ONLINE_DIR}/ | ||
cp -v beamer*.sty ${ONLINE_DIR}/ | ||
cp -v sjtu*.sty ${ONLINE_DIR}/ | ||
|
||
# quick start | ||
cp -v src/doc/sjtubeamerquickstart.tex ${ONLINE_DIR}/ | ||
cp -v src/doc/ref.bib ${ONLINE_DIR}/ | ||
|
||
# Generate zip | ||
cd ${ONLINE_DIR} | ||
zip -r ${ONLINE_FILENAME} * | ||
cd - | ||
mv -f ${ONLINE_DIR}/${ONLINE_FILENAME} ${ONLINE_FILENAME} | ||
|
||
echo ----------------------------------------------------- | ||
echo Online package is generated at ${ONLINE_DIR}. | ||
echo Zipped file is at ./${ONLINE_FILENAME}. | ||
echo ----------------------------------------------------- |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
#!/bin/bash | ||
|
||
# Build online package first. | ||
.github/ci/build_online.sh | ||
|
||
cd src | ||
|
||
# This will trigger checkinit_hook() to move the files to the root directory. | ||
l3build ctan | ||
l3build cache-demo # cache demos for making the next ctan process faster | ||
l3build manifest | ||
l3build ctan | ||
l3build clean-demo # for a clean restart | ||
|
||
cd .. | ||
.github/ci/copy_resources.sh | ||
|
||
# Copy to the tds dir for uploading artifacts conveniently. | ||
cp -v sjtubeamer-online.zip src/build/distrib/tds/ | ||
|
||
if [ ! -f src/sjtubeamer-ctan.zip ]; then | ||
echo "BUILD FAILED." | ||
echo "BUILD CTAN FAILED." | ||
exit 1 | ||
fi | ||
fi |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
apk add zip diffutils | ||
tlmgr update --self | ||
tlmgr update l3build | ||
.github/ci/build_package.sh | ||
make build-dev | ||
name: build package with XeLaTeX | ||
- uses: xu-cheng/texlive-action/full@v1 | ||
with: | ||
|
@@ -96,6 +96,15 @@ jobs: | |
asset_path: src/sjtubeamer-ctan.zip | ||
asset_name: sjtubeamer-ctan.zip | ||
asset_content_type: application/zip | ||
- name: add online zip | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: sjtubeamer-online.zip | ||
asset_name: sjtubeamer-online.zip | ||
asset_content_type: application/zip | ||
- name: add devguide | ||
uses: actions/[email protected] | ||
env: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -258,6 +258,7 @@ build-*.tex | |
|
||
*-ctan.zip | ||
*.tds.zip | ||
*-online.zip | ||
*.listing | ||
red.pdf | ||
blue.pdf | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.