Skip to content
This repository was archived by the owner on May 26, 2022. It is now read-only.

Commit 540a933

Browse files
committed
add build on Github Actions
1 parent 30688ac commit 540a933

File tree

3 files changed

+338
-17
lines changed

3 files changed

+338
-17
lines changed

.github/workflows/build.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Build and deploy LaTeX book
2+
on:
3+
- push
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Set up Git repository
10+
uses: actions/checkout@v1
11+
12+
- name: Compile LaTeX document
13+
uses: xu-cheng/latex-action@v2
14+
with:
15+
root_file: postgresql.tex
16+
17+
- name: Upload pdf document
18+
uses: actions/upload-artifact@v2
19+
with:
20+
name: postgresql
21+
path: postgresql.pdf
22+
23+
deploy:
24+
runs-on: ubuntu-latest
25+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
26+
needs: [build]
27+
steps:
28+
- name: Download artifacts
29+
uses: actions/download-artifact@v2
30+
with:
31+
name: postgresql
32+
33+
- name: Create Release
34+
id: create_release
35+
uses: actions/create-release@v1
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
with:
39+
tag_name: ${{ github.ref }}
40+
release_name: Release ${{ github.ref }}
41+
draft: false
42+
prerelease: false
43+
44+
- name: Upload Release Asset
45+
id: upload-release-asset
46+
uses: actions/upload-release-asset@v1
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
with:
50+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
51+
asset_path: ./postgresql.pdf
52+
asset_name: postgresql.pdf
53+
asset_content_type: application/pdf

.gitignore

Lines changed: 283 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,290 @@
1+
## Core latex/pdflatex auxiliary files:
12
*.aux
2-
*.backup
3+
*.lof
34
*.log
4-
*.idx
5+
*.lot
6+
*.fls
57
*.out
6-
*.snm
7-
*.sty~
8-
*.tex~
98
*.toc
10-
*.epub
9+
*.fmt
10+
*.fot
11+
*.cb
12+
*.cb2
13+
.*.lb
14+
15+
## Intermediate documents:
16+
*.dvi
17+
*.xdv
18+
*-converted-to.*
19+
# these rules might exclude image files for figures etc.
20+
# *.ps
21+
# *.eps
22+
# *.pdf
23+
24+
## Generated if empty string is given at "Please type another file name for output:"
25+
cv.pdf
26+
27+
## Bibliography auxiliary files (bibtex/biblatex/biber):
28+
*.bbl
29+
*.bcf
30+
*.blg
31+
*-blx.aux
32+
*-blx.bib
33+
*.run.xml
34+
35+
## Build tool auxiliary files:
36+
*.fdb_latexmk
37+
*.synctex
38+
*.synctex(busy)
39+
*.synctex.gz
40+
*.synctex.gz(busy)
41+
*.pdfsync
42+
43+
## Build tool directories for auxiliary files
44+
# latexrun
45+
latex.out/
46+
47+
## Auxiliary and intermediate files from other packages:
48+
# algorithms
49+
*.alg
50+
*.loa
51+
52+
# achemso
53+
acs-*.bib
54+
55+
# amsthm
56+
*.thm
57+
58+
# beamer
59+
*.nav
60+
*.pre
61+
*.snm
62+
*.vrb
63+
64+
# changes
65+
*.soc
66+
67+
# comment
68+
*.cut
69+
70+
# cprotect
71+
*.cpt
72+
73+
# elsarticle (documentclass of Elsevier journals)
74+
*.spl
75+
76+
# endnotes
77+
*.ent
78+
79+
# fixme
80+
*.lox
81+
82+
# feynmf/feynmp
83+
*.mf
84+
*.mp
85+
*.t[1-9]
86+
*.t[1-9][0-9]
87+
*.tfm
88+
89+
#(r)(e)ledmac/(r)(e)ledpar
90+
*.end
91+
*.?end
92+
*.[1-9]
93+
*.[1-9][0-9]
94+
*.[1-9][0-9][0-9]
95+
*.[1-9]R
96+
*.[1-9][0-9]R
97+
*.[1-9][0-9][0-9]R
98+
*.eledsec[1-9]
99+
*.eledsec[1-9]R
100+
*.eledsec[1-9][0-9]
101+
*.eledsec[1-9][0-9]R
102+
*.eledsec[1-9][0-9][0-9]
103+
*.eledsec[1-9][0-9][0-9]R
104+
105+
# glossaries
106+
*.acn
107+
*.acr
108+
*.glg
109+
*.glo
110+
*.gls
111+
*.glsdefs
112+
*.lzo
113+
*.lzs
114+
115+
# uncomment this for glossaries-extra (will ignore makeindex's style files!)
116+
# *.ist
117+
118+
# gnuplottex
119+
*-gnuplottex-*
120+
121+
# gregoriotex
122+
*.gaux
123+
*.gtex
124+
125+
# htlatex
126+
*.4ct
127+
*.4tc
128+
*.idv
129+
*.lg
130+
*.trc
131+
*.xref
132+
133+
# hyperref
134+
*.brf
135+
136+
# knitr
137+
*-concordance.tex
138+
# TODO Uncomment the next line if you use knitr and want to ignore its generated tikz files
139+
# *.tikz
140+
*-tikzDictionary
141+
142+
# listings
143+
*.lol
144+
145+
# luatexja-ruby
146+
*.ltjruby
147+
148+
# makeidx
149+
*.idx
150+
*.ilg
151+
*.ind
152+
153+
# minitoc
154+
*.maf
155+
*.mlf
156+
*.mlt
157+
*.mtc[0-9]*
158+
*.slf[0-9]*
159+
*.slt[0-9]*
160+
*.stc[0-9]*
161+
162+
# minted
163+
_minted*
164+
*.pyg
165+
166+
# morewrites
167+
*.mw
168+
169+
# nomencl
170+
*.nlg
171+
*.nlo
172+
*.nls
173+
174+
# pax
175+
*.pax
176+
177+
# pdfpcnotes
178+
*.pdfpc
179+
180+
# sagetex
181+
*.sagetex.sage
182+
*.sagetex.py
183+
*.sagetex.scmd
184+
185+
# scrwfile
186+
*.wrt
187+
188+
# sympy
189+
*.sout
190+
*.sympy
191+
sympy-plots-for-*.tex/
192+
193+
# pdfcomment
194+
*.upa
195+
*.upb
196+
197+
# pythontex
198+
*.pytxcode
199+
pythontex-files-*/
200+
201+
# tcolorbox
202+
*.listing
203+
204+
# thmtools
205+
*.loe
206+
207+
# TikZ & PGF
208+
*.dpth
209+
*.md5
210+
*.auxlock
211+
212+
# todonotes
213+
*.tdo
214+
215+
# vhistory
216+
*.hst
217+
*.ver
218+
219+
# easy-todo
220+
*.lod
221+
222+
# xcolor
223+
*.xcp
224+
225+
# xmpincl
226+
*.xmpi
227+
228+
# xindy
229+
*.xdy
230+
231+
# xypic precompiled matrices and outlines
232+
*.xyc
233+
*.xyd
234+
235+
# endfloat
236+
*.ttt
237+
*.fff
238+
239+
# Latexian
240+
TSWLatexianTemp*
241+
242+
## Editors:
243+
# WinEdt
244+
*.bak
245+
*.sav
246+
247+
# Texpad
248+
.texpadtmp
249+
250+
# LyX
251+
*.lyx~
252+
253+
# Kile
254+
*.backup
255+
256+
# gummi
257+
.*.swp
258+
259+
# KBibTeX
260+
*~[0-9]*
261+
262+
# TeXnicCenter
263+
*.tps
264+
265+
# auto folder when using emacs and auctex
266+
./auto/*
267+
*.el
268+
269+
# expex forward references with \gathertags
270+
*-tags.tex
271+
272+
# standalone packages
273+
*.sta
274+
275+
# Makeindex log files
276+
*.lpz
277+
278+
# xwatermark package
279+
*.xwm
280+
281+
# REVTeX puts footnotes in the bibliography by default, unless the nofootinbib
282+
# option is specified. Footnotes are the stored in a file with suffix Notes.bib.
283+
# Uncomment the next line to have this generated file ignored.
284+
#*Notes.bib
285+
286+
287+
11288
postgresql.pdf
12289
.DS_Store
13290
postgresql.synctex.gz
@@ -16,8 +293,3 @@ postgresql.synctex.gz
16293
# Vagrant
17294
.vagrant
18295
Vagrantfile
19-
20-
# Ignore cache
21-
/.sass-cache
22-
/.cache
23-

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
# Работа с PostgreSQL: настройка и масштабирование [postgresql.leopard.in.ua](https://postgresql.leopard.in.ua/)
22

3-
## Готовые pdf и html5
3+
## Готовые pdf
44

5-
[Последние сборки](https://github.com/le0pard/postgresql_book/releases)
6-
7-
## Генерация HTML
8-
9-
pdf2htmlEX --zoom 1.3 --embed CFIJO postgresql.pdf
5+
[Скачать PDF](https://github.com/le0pard/postgresql_book/releases/latest/download/postgresql.pdf)
106

117
## License
128

0 commit comments

Comments
 (0)