Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
b68687f0bd | |||
6d3f2a6942 | |||
ec4d31598b | |||
7f08b6d38e |
42
.drone.yml
42
.drone.yml
@ -1,42 +0,0 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: buildlatex
|
||||
image: nareshkumarrao/texliveonfly
|
||||
commands:
|
||||
- tlmgr update --self --all
|
||||
- texliveonfly Main.tex
|
||||
- biber main
|
||||
- texliveonfly Main.tex
|
||||
- biber main
|
||||
- texliveonfly Main.tex
|
||||
- name: gitea_release
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
base_url: https://git.nareshkumarrao.com
|
||||
api_key:
|
||||
from_secret: gitea_token
|
||||
files: Main.pdf
|
||||
when:
|
||||
event: tag
|
||||
- name: pushftp
|
||||
image: cschlosser/drone-ftps
|
||||
environment:
|
||||
PLUGIN_HOSTNAME: nareshkumarrao.com:21
|
||||
FTP_USERNAME:
|
||||
from_secret: ftp_username
|
||||
FTP_PASSWORD:
|
||||
from_secret: ftp_password
|
||||
PLUGIN_SECURE: false
|
||||
PLUGIN_DEST_DIR: master_thesis
|
||||
PLUGIN_INCLUDE: ^Main.pdf$
|
||||
when:
|
||||
event: tag
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
|
41
.gitea/workflows/build.yaml
Normal file
41
.gitea/workflows/build.yaml
Normal file
@ -0,0 +1,41 @@
|
||||
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: docker://nareshkumarrao/texliveonfly:latest
|
||||
with:
|
||||
entrypoint: /bin/sh
|
||||
args: -c "tlmgr update --self --all && texliveonfly Main.tex && biber main && texliveonfly Main.tex && biber main && texliveonfly Main.tex"
|
||||
|
||||
# - 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 }}
|
||||
# password: ${{ secrets.FTP_PASSWORD }}
|
||||
# port: 21
|
||||
# protocol: ftp
|
||||
# local-dir: ./
|
||||
# server-dir: master_thesis/
|
||||
# include: Main.pdf
|
@ -1,8 +0,0 @@
|
||||
build-job:
|
||||
image: texlive/texlive:latest
|
||||
stage: build
|
||||
script:
|
||||
- make
|
||||
tags:
|
||||
- docker
|
||||
|
Reference in New Issue
Block a user