Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
add: create an automatic job for compile and release version.
  • Loading branch information
maumneto committed Feb 26, 2024
1 parent 5c02a47 commit 5e9e248
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: compile and release

on:
push:
tags:
- '*.*.*'

jobs:
build_latex:
runs_on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
root_file: document.tex

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./template_release.zip
asset_name: ./template_release.zip
asset_content_type: application/zip

0 comments on commit 5e9e248

Please sign in to comment.