Skip to content

Commit

Permalink
Update verify.yml 更新发布脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
liziwl committed May 4, 2021
1 parent 5f07c44 commit ddd4f57
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Compile LaTeX document
uses: xu-cheng/texlive-action/full@v1
with:
Expand All @@ -19,23 +19,26 @@ jobs:
with:
name: PDF
path: main.pdf

create_release:
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/v')"
steps:
- name: Get version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Checkout
uses: actions/checkout@v2
- name: Archive Release
uses: thedoctor0/zip-release@master
with:
filename: 'sustech-latex-talk.zip'
filename: 'sustech-latex-talk-${{ steps.get_version.outputs.VERSION }}.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-latex-talk.zip
files: 'sustech-latex-talk-${{ steps.get_version.outputs.VERSION }}.zip'
env:
GITHUB_TOKEN: ${{ secrets.ORG_TOKEN }}

0 comments on commit ddd4f57

Please sign in to comment.