Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
8d56a258bd | |||
b68687f0bd | |||
6d3f2a6942 | |||
ec4d31598b |
@ -3,50 +3,32 @@ name: Build and Release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "*"
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build LaTeX
|
||||
uses: nareshkumarrao/texliveonfly
|
||||
- uses: wtfjoke/setup-tectonic@v3
|
||||
with:
|
||||
run: |
|
||||
tlmgr update --self --all
|
||||
texliveonfly Main.tex
|
||||
biber main
|
||||
texliveonfly Main.tex
|
||||
biber main
|
||||
texliveonfly Main.tex
|
||||
biber-version: 'latest'
|
||||
- run: tectonic Main.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 PDF to Release
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./Main.pdf
|
||||
asset_name: Main.pdf
|
||||
asset_content_type: application/pdf
|
||||
|
||||
# - name: Upload to FTP
|
||||
# - name: Create Release
|
||||
# uses: softprops/action-gh-release@v1
|
||||
# if: startsWith(github.ref, 'refs/tags/')
|
||||
# with:
|
||||
# files: Main.pdf
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# - name: Deploy via FTP
|
||||
# uses: SamKirkland/FTP-Deploy-Action@v4.3.4
|
||||
# if: startsWith(github.ref, 'refs/tags/')
|
||||
# with:
|
||||
# server: nareshkumarrao.com
|
||||
# username: ${{ secrets.FTP_USERNAME }}
|
||||
|
Reference in New Issue
Block a user