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