Commit 6fb7e822 authored by liziwl's avatar liziwl
Browse files

update ci

parent dc08ba6d
Loading
Loading
Loading
Loading
+50 −0
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
+22 −0
Original line number Diff line number Diff line
name: Verify and create release
name: Verify compile

on: [push, pull_request]

@@ -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.txt

deleted100644 → 0
+0 −1
Original line number Diff line number Diff line
加入镜像站链接,更新封面字体。
 No newline at end of file

test-commit

0 → 100644
+4 −0
Original line number Diff line number Diff line
1
2
3
4