Loading .github/workflows/release.yml +7 −7 Changes for .github/workflows/release.yml: 7 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -18,16 +18,16 @@ jobs: if: github.repository_owner == 'SUSTech-CRA' steps: - name: Checkout uses: actions/checkout@v2 uses: actions/checkout@v3 - uses: actions/setup-python@v2 - uses: actions/setup-python@v3 if: ${{ !startsWith(github.ref, 'refs/tags/v') }} with: python-version: '3.9' - name: Meta-data normalization if: ${{ !startsWith(github.ref, 'refs/tags/v') }} run: python test/update-dist.py --dev run: python test/update-dist.py --dev --sha ${GITHUB_SHA} - name: run texlive docker container uses: docker://texlive/texlive:latest Loading @@ -42,13 +42,13 @@ jobs: exclusions: '*.git* /*node_modules/* .editorconfig' - name: Upload release artifact uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3 with: name: 'sustech-thesis-dev-build' path: 'sustech-thesis-dev-build.zip' - name: Upload Pre-release artifact uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3 with: name: 'pre-release-artifacts_action_build' path: | Loading @@ -62,7 +62,7 @@ jobs: needs: build_latex if: github.event_name == 'push' steps: - uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3 name: Download artifact - uses: "marvinpinto/action-automatic-releases@latest" name: Auto pre-release Loading @@ -83,7 +83,7 @@ jobs: needs: build_latex if: startsWith(github.ref, 'refs/tags/v') steps: - uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3 name: Download artifact - name: Get the version Loading .github/workflows/verify-compile.yml +4 −4 Changes for .github/workflows/verify-compile.yml: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -13,20 +13,20 @@ jobs: container: texlive/texlive:${{ matrix.texlive }} steps: - name: Checkout uses: actions/checkout@v2 uses: actions/checkout@v3 - uses: actions/setup-python@v2 - uses: actions/setup-python@v3 with: python-version: '3.9' - name: Meta-data normalization run: python test/update-dist.py --dev run: python test/update-dist.py --dev --sha ${GITHUB_SHA} - name: run texlive docker container run: make doc test - name: Publish PDF as actions assets uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3 with: name: Example-PDFs-texlive-${{ matrix.texlive }} path: | Loading test/update-dist.py +4 −7 Changes for test/update-dist.py: 4 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -57,9 +57,12 @@ if __name__ == "__main__": except: new_version = "0.0.1" now_date = time.strftime("%Y/%m/%d", time.localtime()) nan_commit_sha = "NAN.SHA" parser = argparse.ArgumentParser() parser.add_argument("--version", "-v", default=new_version, help='release version') parser.add_argument("--sha", "-s", default=nan_commit_sha, help='git commit hash') parser.add_argument("--date", "-d", default=now_date, help='release date') parser.add_argument("--dev", action='store_true', Loading @@ -67,13 +70,7 @@ if __name__ == "__main__": args = parser.parse_args() if args.dev: dev_version = "DEV.BUILD" try: git_head_sha = os.popen(r"git log -1 --format='%H'").readlines()[0] except: git_head_sha = "NAN.SHA" if git_head_sha: dev_version = f"{git_head_sha[:7].upper()}.{dev_version}" dev_version = f"{args.sha[:7].upper()}.DEV.BUILD" change_meta(dev_version, now_date) else: change_meta(args.version, args.date) Loading
.github/workflows/release.yml +7 −7 Changes for .github/workflows/release.yml: 7 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -18,16 +18,16 @@ jobs: if: github.repository_owner == 'SUSTech-CRA' steps: - name: Checkout uses: actions/checkout@v2 uses: actions/checkout@v3 - uses: actions/setup-python@v2 - uses: actions/setup-python@v3 if: ${{ !startsWith(github.ref, 'refs/tags/v') }} with: python-version: '3.9' - name: Meta-data normalization if: ${{ !startsWith(github.ref, 'refs/tags/v') }} run: python test/update-dist.py --dev run: python test/update-dist.py --dev --sha ${GITHUB_SHA} - name: run texlive docker container uses: docker://texlive/texlive:latest Loading @@ -42,13 +42,13 @@ jobs: exclusions: '*.git* /*node_modules/* .editorconfig' - name: Upload release artifact uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3 with: name: 'sustech-thesis-dev-build' path: 'sustech-thesis-dev-build.zip' - name: Upload Pre-release artifact uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3 with: name: 'pre-release-artifacts_action_build' path: | Loading @@ -62,7 +62,7 @@ jobs: needs: build_latex if: github.event_name == 'push' steps: - uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3 name: Download artifact - uses: "marvinpinto/action-automatic-releases@latest" name: Auto pre-release Loading @@ -83,7 +83,7 @@ jobs: needs: build_latex if: startsWith(github.ref, 'refs/tags/v') steps: - uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3 name: Download artifact - name: Get the version Loading
.github/workflows/verify-compile.yml +4 −4 Changes for .github/workflows/verify-compile.yml: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -13,20 +13,20 @@ jobs: container: texlive/texlive:${{ matrix.texlive }} steps: - name: Checkout uses: actions/checkout@v2 uses: actions/checkout@v3 - uses: actions/setup-python@v2 - uses: actions/setup-python@v3 with: python-version: '3.9' - name: Meta-data normalization run: python test/update-dist.py --dev run: python test/update-dist.py --dev --sha ${GITHUB_SHA} - name: run texlive docker container run: make doc test - name: Publish PDF as actions assets uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3 with: name: Example-PDFs-texlive-${{ matrix.texlive }} path: | Loading
test/update-dist.py +4 −7 Changes for test/update-dist.py: 4 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -57,9 +57,12 @@ if __name__ == "__main__": except: new_version = "0.0.1" now_date = time.strftime("%Y/%m/%d", time.localtime()) nan_commit_sha = "NAN.SHA" parser = argparse.ArgumentParser() parser.add_argument("--version", "-v", default=new_version, help='release version') parser.add_argument("--sha", "-s", default=nan_commit_sha, help='git commit hash') parser.add_argument("--date", "-d", default=now_date, help='release date') parser.add_argument("--dev", action='store_true', Loading @@ -67,13 +70,7 @@ if __name__ == "__main__": args = parser.parse_args() if args.dev: dev_version = "DEV.BUILD" try: git_head_sha = os.popen(r"git log -1 --format='%H'").readlines()[0] except: git_head_sha = "NAN.SHA" if git_head_sha: dev_version = f"{git_head_sha[:7].upper()}.{dev_version}" dev_version = f"{args.sha[:7].upper()}.DEV.BUILD" change_meta(dev_version, now_date) else: change_meta(args.version, args.date)