Loading .github/workflows/release.yml 0 → 100644 +50 −0 Changes for .github/workflows/release.yml: 50 added lines, 0 removed lines. Original line number Diff line number Diff line env: {} # FILE GENERATED WITH: npx ghat fregante/ghatemplates/action-release # SOURCE: https://github.com/fregante/ghatemplates name: Release manually on: workflow_dispatch: # You can manually trigger a deployment on GitHub.com # https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/ inputs: Version: description: 'Example: v1.2.3' required: true jobs: Release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: fetch-depth: 50 - run: git tag ${{ github.event.inputs.Version }} - uses: fregante/release-with-changelog@v3 with: token: ${{ secrets.GITHUB_TOKEN }} exclude: true commit-template: '- {title} ← {hash}' template: | ### Changelog {commits} # - name: Update major tag # run: | # MAJOR=$(echo ${{ github.event.inputs.Version }} | sed 's/\..*//') # git push origin HEAD:refs/tags/$MAJOR --force - name: Archive Release uses: thedoctor0/zip-release@master with: filename: 'sustech-thesis.zip' exclusions: '*.git* /*node_modules/* .editorconfig' - name: Upload binaries to release uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: 'sustech-thesis.zip' tag: ${{ github.event.inputs.Version }} overwrite: true No newline at end of file .github/workflows/verify-and-release.yml→.github/workflows/verify-compile.yml +1 −21 Changes for .github/workflows/verify-compile.yml: 1 added line, 21 removed lines. Original line number Diff line number Diff line name: Verify and create release name: Verify compile on: [push, pull_request] Loading @@ -20,23 +20,3 @@ jobs: with: name: PDF path: main.pdf create_release: runs-on: ubuntu-latest if: "startsWith(github.ref, 'refs/tags/v')" steps: - name: Checkout uses: actions/checkout@v2 - name: Archive Release uses: thedoctor0/zip-release@master with: filename: 'sustech-thesis.zip' exclusions: '*.git* /*node_modules/* .editorconfig' - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: body_path: CHANGELOG.txt files: sustech-thesis.zip env: GITHUB_TOKEN: ${{ secrets.ORG_TOKEN }} CHANGELOG.txtdeleted 100644 → 0 +0 −1 Changes for CHANGELOG.txt: 0 added lines, 1 removed line. Original line number Diff line number Diff line 加入镜像站链接,更新封面字体。 No newline at end of file test-commit 0 → 100644 +4 −0 Changes for test-commit: 4 added lines, 0 removed lines. Original line number Diff line number Diff line 1 2 3 4 Loading
.github/workflows/release.yml 0 → 100644 +50 −0 Changes for .github/workflows/release.yml: 50 added lines, 0 removed lines. Original line number Diff line number Diff line env: {} # FILE GENERATED WITH: npx ghat fregante/ghatemplates/action-release # SOURCE: https://github.com/fregante/ghatemplates name: Release manually on: workflow_dispatch: # You can manually trigger a deployment on GitHub.com # https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/ inputs: Version: description: 'Example: v1.2.3' required: true jobs: Release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: fetch-depth: 50 - run: git tag ${{ github.event.inputs.Version }} - uses: fregante/release-with-changelog@v3 with: token: ${{ secrets.GITHUB_TOKEN }} exclude: true commit-template: '- {title} ← {hash}' template: | ### Changelog {commits} # - name: Update major tag # run: | # MAJOR=$(echo ${{ github.event.inputs.Version }} | sed 's/\..*//') # git push origin HEAD:refs/tags/$MAJOR --force - name: Archive Release uses: thedoctor0/zip-release@master with: filename: 'sustech-thesis.zip' exclusions: '*.git* /*node_modules/* .editorconfig' - name: Upload binaries to release uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: 'sustech-thesis.zip' tag: ${{ github.event.inputs.Version }} overwrite: true No newline at end of file
.github/workflows/verify-and-release.yml→.github/workflows/verify-compile.yml +1 −21 Changes for .github/workflows/verify-compile.yml: 1 added line, 21 removed lines. Original line number Diff line number Diff line name: Verify and create release name: Verify compile on: [push, pull_request] Loading @@ -20,23 +20,3 @@ jobs: with: name: PDF path: main.pdf create_release: runs-on: ubuntu-latest if: "startsWith(github.ref, 'refs/tags/v')" steps: - name: Checkout uses: actions/checkout@v2 - name: Archive Release uses: thedoctor0/zip-release@master with: filename: 'sustech-thesis.zip' exclusions: '*.git* /*node_modules/* .editorconfig' - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: body_path: CHANGELOG.txt files: sustech-thesis.zip env: GITHUB_TOKEN: ${{ secrets.ORG_TOKEN }}
CHANGELOG.txtdeleted 100644 → 0 +0 −1 Changes for CHANGELOG.txt: 0 added lines, 1 removed line. Original line number Diff line number Diff line 加入镜像站链接,更新封面字体。 No newline at end of file
test-commit 0 → 100644 +4 −0 Changes for test-commit: 4 added lines, 0 removed lines. Original line number Diff line number Diff line 1 2 3 4