Skip to content

Commit

Permalink
Merge pull request #418 from gliptak/actions2
Browse files Browse the repository at this point in the history
Add release job to GHA CI
  • Loading branch information
lvh committed Jun 27, 2021
2 parents ddf2987 + 3a198bd commit c530f53
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 24 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Checkout
Expand Down Expand Up @@ -49,3 +50,52 @@ jobs:
with:
name: crypto101-fr_html.tar.gz
path: _release/crypto101-fr_html.tar.gz

release:
name: Release
needs: build
runs-on: ubuntu-20.04
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
- name: Download document
uses: actions/download-artifact@v2
with:
name: crypto101-en.epub
path: /tmp
- name: Download document
uses: actions/download-artifact@v2
with:
name: crypto101-en.pdf
path: /tmp
- name: Download document
uses: actions/download-artifact@v2
with:
name: crypto101-en_html.tar.gz
path: /tmp
- name: Download document
uses: actions/download-artifact@v2
with:
name: crypto101-fr.epub
path: /tmp
- name: Download document
uses: actions/download-artifact@v2
with:
name: crypto101-fr.pdf
path: /tmp
- name: Download document
uses: actions/download-artifact@v2
with:
name: crypto101-fr_html.tar.gz
path: /tmp
- name: Release
uses: marvinpinto/action-automatic-releases@v1.2.1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
files: |
/tmp/crypto101-en.epub
/tmp/crypto101-en.pdf
/tmp/crypto101-en_html.tar.gz
/tmp/crypto101-fr.epub
/tmp/crypto101-fr.pdf
/tmp/crypto101-fr_html.tar.gz
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.rst
Expand Up @@ -2,8 +2,8 @@
Crypto 101: the book
======================

.. image:: https://travis-ci.com/crypto101/book.svg?branch=master
:target: https://travis-ci.com/crypto101/book
.. image:: https://github.com/crypto101/book/actions/workflows/ci.yml/badge.svg?branch=master
:target: https://github.com/crypto101/book/actions/workflows/ci.yml?branch=master

This is the source repository for `Crypto 101`_, the introductory book
about cryptography by lvh_.
Expand Down

0 comments on commit c530f53

Please sign in to comment.