Commit cdade0f8 authored by liziwl's avatar liziwl
Browse files

fix workflow

parent a86cb9b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -32,7 +32,7 @@ jobs:
        uses: docker://texlive/texlive:TL2020-historic
        uses: docker://texlive/texlive:TL2020-historic
        # https://hub.docker.com/r/texlive/texlive
        # https://hub.docker.com/r/texlive/texlive
        with:
        with:
          args: make cleanall doc test clean
          args: make dist-github


      - name: Archive Release
      - name: Archive Release
        uses: thedoctor0/zip-release@master
        uses: thedoctor0/zip-release@master
+6 −4
Original line number Original line Diff line number Diff line
@@ -16,7 +16,7 @@ else
	RM = rm -f
	RM = rm -f
endif
endif


.PHONY: all all-dev clean cleanall thesis viewthesis dist doc viewdoc cls test wordcount FORCE_MAKE
.PHONY: all all-dev clean cleanall thesis viewthesis dist dist-github doc viewdoc cls test wordcount FORCE_MAKE


thesis: $(THESIS).pdf
thesis: $(THESIS).pdf


@@ -31,10 +31,12 @@ $(CLSFILE): $(SOURCES)


doc: $(PACKAGE).pdf
doc: $(PACKAGE).pdf


dist: doc thesis clean
dist-github: doc thesis test clean

dist: dist-github
	rm -rf dist/
	rm -rf dist/
	mkdir -p dist/
	mkdir -p dist/
	zip -r dist/sustech-master-thesis.zip . -x *.git* /*node_modules/* .editorconfig *public-test/* *dist/*
	zip -r dist/sustech-thesis-dev-build.zip . -x *.git* /*node_modules/* .editorconfig *public-test/* *dist/*


$(PACKAGE).pdf: cls FORCE_MAKE
$(PACKAGE).pdf: cls FORCE_MAKE
	$(LATEXMK) $(PACKAGE).dtx
	$(LATEXMK) $(PACKAGE).dtx
@@ -53,7 +55,7 @@ test: cls FORCE_MAKE


clean:
clean:
	$(LATEXMK) -c $(PACKAGE).dtx $(THESIS)
	$(LATEXMK) -c $(PACKAGE).dtx $(THESIS)
	-@$(RM) -rf *~ main-survey.* main-translation.* _markdown_sustechthesis* sustechthesis.markdown.* _markdown_thuthesis* thuthesis.markdown.*
	-@$(RM) -rf *~ main-survey.* main-translation.* *_markdown_* *.markdown.*
	-@$(RM) -rf *.aux *.bbl *.blg
	-@$(RM) -rf *.aux *.bbl *.blg


cleanall: clean
cleanall: clean