Skip to content

Commit

Permalink
Moving to Github Actions (#5)
Browse files Browse the repository at this point in the history
* Testing GH Actions

* updates

* main

* main

* updates

* With packages

* Packets in meta

* mkshape

* with uml

* pgfopts

* With listings and uml fix

* Collecting artifacts

* With release pipeline -> test needed
  • Loading branch information
whatever4711 authored Mar 31, 2023
1 parent 5d3317d commit eb51c24
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 17 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build_pdf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Local Build

env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

on:
push:
branches:
- '**'
- '!main'
pull_request:
branches:
- 'main'

jobs:

build:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v3.4.0
- name: Configure GIT
run: |
git config --global init.defaultBranch "main"
git config --global user.email "ci@example.com"
git config --global user.name "ci"
git config --global --add safe.directory /src
- name: Build and load
run: make
- name: Show and move generated pdf
run: |
ls -la | grep pdf
mv thesis.pdf /tmp/thesis.pdf
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: thesis.pdf
path: /tmp/thesis.pdf
35 changes: 35 additions & 0 deletions .github/workflows/release_pdf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release PDF

on:
push:
tags:
- 'v[0-9]+.[0-9]+'

jobs:

build:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v3.4.0
- name: Configure GIT
run: |
git config --global init.defaultBranch "main"
git config --global user.email "ci@example.com"
git config --global user.name "ci"
git config --global --add safe.directory /src
- name: Build and load
run: make
- name: Show and move generated pdf
run: |
ls -la | grep pdf
mv thesis.pdf /tmp/thesis.pdf
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: thesis.pdf
path: /tmp/thesis.pdf
- uses: ncipollo/release-action@v1
with:
artifacts: "/tmp/*.pdf"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@
*.gin
# Do not initialize twice
.prepared
packages.txt
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[![Build Status](https://travis-ci.com/uniba-ktr/ThesTeX.svg?branch=master)](https://travis-ci.com/uniba-ktr/ThesTeX)

# ThesTeX

LaTeX template for bachelor or master thesis.
Expand Down

0 comments on commit eb51c24

Please sign in to comment.