Skip to content

Commit

Permalink
Major structure change due to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ruzickap committed Nov 22, 2019
1 parent b07ce1a commit b121e48
Show file tree
Hide file tree
Showing 16 changed files with 122 additions and 3,915 deletions.
7 changes: 7 additions & 0 deletions .dependabot/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 1
update_configs:
- package_manager: "submodules"
directory: "/"
update_schedule: "daily"
default_assignees:
- "ruzickap"
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "build"

on: [push, pull_request]

jobs:
build_latex:
runs-on: ubuntu-18.04
env:
DEBIAN_FRONTEND: noninteractive

steps:
- uses: actions/checkout@v1.1.0
with:
submodules: recursive

- name: Install necessary packages
run: |
sudo apt install -y make poppler-utils texlive texlive-latex-extra
- name: Create the documents
run: ./run.sh
79 changes: 79 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: "release"

on:
push:
tags:
- 'v*'

jobs:
build_latex:
runs-on: ubuntu-18.04
env:
DEBIAN_FRONTEND: noninteractive

steps:
- uses: actions/checkout@v1.1.0
with:
submodules: recursive

- name: Install necessary packages
run: |
sudo apt install -y make poppler-utils texlive texlive-latex-extra
- name: Create the documents
run: ./run.sh

- name: Create Release
id: create_release
uses: actions/create-release@v1.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload Release Asset - pdf
id: upload-release-asset-pdf
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: systemd_cheatsheet.pdf
asset_name: systemd_cheatsheet.pdf
asset_content_type: application/pdf

- name: Upload Release Asset - svg
id: upload-release-asset-svg
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: systemd_cheatsheet.svg
asset_name: systemd_cheatsheet.svg
asset_content_type: image/svg+xml

- name: Upload Release Asset - png
id: upload-release-asset-png
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: systemd_cheatsheet.png
asset_name: systemd_cheatsheet.png
asset_content_type: image/png

- name: Upload Release Asset - jpg
id: upload-release-asset-jpg
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: systemd_cheatsheet.jpg
asset_name: systemd_cheatsheet.jpg
asset_content_type: image/jpg
3 changes: 0 additions & 3 deletions .gitignore

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "makefile4latex"]
path = makefile4latex
url = https://github.com/tueda/makefile4latex.git
1 change: 1 addition & 0 deletions .latex.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PDFTOPPM_OPT += -r 200
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

49 changes: 0 additions & 49 deletions Makefile

This file was deleted.

1 change: 1 addition & 0 deletions Makefile
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Systemd Cheatsheet
==================

[![Build Status](https://travis-ci.com/ruzickap/cheatsheet-systemd.svg?branch=master)](https://travis-ci.com/ruzickap/cheatsheet-systemd)
[![Build Status](https://github.com/ruzickap/cheatsheet-systemd/workflows/build/badge.svg)](https://github.com/ruzickap/cheatsheet-systemd)

Systemd Cheatsheet
1 change: 1 addition & 0 deletions makefile4latex
Submodule makefile4latex added at dfe7e3
3 changes: 0 additions & 3 deletions pdf_svg_jpg

This file was deleted.

7 changes: 7 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

make pdf
make jpg
make svg
make png
make mostlyclean
Binary file removed systemd_cheatsheet.dvi
Binary file not shown.
Binary file removed systemd_cheatsheet.jpg
Binary file not shown.
Binary file removed systemd_cheatsheet.pdf
Binary file not shown.
Loading

0 comments on commit b121e48

Please sign in to comment.