From e3a7695432cd4f6d54d23b453c933eb9a1f3c3e5 Mon Sep 17 00:00:00 2001 From: CyrilFerlicot Date: Thu, 2 Mar 2023 21:45:39 +0100 Subject: [PATCH] Migrate to github actions --- .bintray.json | 27 --------------------- .github/workflows/main.yml | 19 +++++++++++++++ .travis.yml | 42 --------------------------------- README.md | 13 ++-------- magritte.pillar => index.pillar | 0 5 files changed, 21 insertions(+), 80 deletions(-) delete mode 100644 .bintray.json create mode 100644 .github/workflows/main.yml delete mode 100644 .travis.yml rename magritte.pillar => index.pillar (100%) diff --git a/.bintray.json b/.bintray.json deleted file mode 100644 index 1e79622..0000000 --- a/.bintray.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "package": { - "name": "booklet-magritte", - "repo": "wip", - "subject": "squarebracketassociates", - "desc": "Magritte", - "licenses": ["MIT"], - "website_url": "https://github.com/SquareBracketAssociates/Booklet-Magritte", - "issue_tracker_url": "https://github.com/SquareBracketAssociates/Booklet-Magritte/issues", - "vcs_url": "https://github.com/SquareBracketAssociates/Booklet-Magritte.git", - "labels": ["work-in-progress"] - }, - - "version": { - "name": "latest", - "desc": "Latest successful build" - }, - - "files": [ - { - "includePattern": "build/book.spiral.pdf", - "uploadPattern": "magritte-wip.pdf", - "matrixParams": { "override": 1 } - } - ], - "publish": true -} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..55891c5 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,19 @@ + +name: Centralized book generation + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + schedule: + - cron: '0 0 * * 0' + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + build: + uses: SquareBracketAssociates/BookBuilderDashboard/.github/workflows/main.yml@master + with: + bookname: magritte-wip diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 43dcdd1..0000000 --- a/.travis.yml +++ /dev/null @@ -1,42 +0,0 @@ -language: smalltalk -sudo: false - -os: - - linux - -smalltalk: - - Pharo-7.0 - -# Unit tests run the normal pillar tests -# Integration tests test that pillar itself can interact with generated files, pdf generation, etc. -# System tests test that we can install and use pillar as a black box -env: - matrix: - - JOB=test TYPE=System ARCHETYPE=book OUTPUT=pdf - -install: - # Pillar installation - - git clone https://github.com/pillar-markup/pillar.git -b v7.4.1 # Clone pillar - - cd pillar && ./scripts/build.sh && cd .. # Run pillar build script. Pillar will be built in `pwd`/build! - - . pillar/scripts/ci/ensure_latex.sh # Install latex - - ./pillar/scripts/ci/ensure_book_dependencies.sh # Install latex dependencies required by pillar - -script: - - ./pillar/build/pillar build pdf - -deploy: -- provider: bintray - file: .bintray.json - on: - repo: SquareBracketAssociates/Booklet-Magritte - skip_cleanup: true - user: ducasse - key: - secure: QbEDArB98C3Y38E76vb5xTzaH+EPVRSU9flNmIiOWNIL0OmFkGH+nm5WUN3wj2bo6jZWGYQlh2/z85/vPYNfqiQgoPaDJiaw/G9thb1u9EN3L1fc3PN7/fJzUs7GnTh/7hB4Z/MxWHkCfIlG9/wJRxZI7phUq1HJTrAUq4pahYTfu6krUOw0fatXjMywULpAIOJszrcPtgxA2JnCuFnNQaZQgLPNA6upd/vbAMa0KSqOQRzq5QmJWoP8hnHIRH4ZpkOxmvIVX/5WMwtsvLwqfma06NOkP3rlSi4YByHI2Y7Eb2y+sD3Enk6W/l2wRJvP8fwEbDK+7MAgvJpybmdD6eMhajrcSLFJFzge74OoWvJEgfgDgVCQg8uT5nNx1k3GzBLvTCQRyiRW3cd0pYW4IUUHoWwdxgzhI98eNtcQZQpAbEuF7WjZsL2tHnu6XiACNVeOYeu3YKygreHBiGmZ4QSAqwrq0r8JtREGPyItEyAZNxDK0PVwteTCxENY/YuEWQc+SkmduEN568u1uIIHJMklJql67oKoFeVbBquiGLpripctHsY3kyBXJap+z13Z7ESNqsJVJ+8ms6z73TKHM+ELl1DwsxLTkBL73XIdWXbetBApNuySobQ4DfH0LoXH5WBDCnGQtx1A2pufDp+HswPbu0qILI0R57Zhh45oRFo= -- provider: releases - file: build/book.pdf - on: - tags: true - skip_cleanup: true - api_key: - secure: pRfu3fr35BzqQDi1ul0SubPSwO8zcyIidqLRZPz3XIrH4qoy1Zgnq785dmB7ziNQqH+VJyh7askSFY3JLxL0d4P0eUgj2ZDIOhJsUQQ/ihevOBWbxlMOoEPjQfzA11l8WrNCQ566KrcYiISRi7bCg698kPTWSRwOmmvqXOJe5zGkuUbVmMNUV2oxaNV4JC8kVyVWHYy0nNMLEX/hzRZRh1+8K34/ds+fZ7irLrbDWMbKGHCyuLCSqv+zJJdu99nWLTclrCxFzK4DEHaMlFiO7wkUpyQLwZ38EDnb3E7iv045jSqCx3XB+DMRG1Da2/9BIXl0mho5ELdEvfGVAbjI2no5FWd0H1cs4/banAePCFnM7ZscJBaPWgVajB7EzrcADJUoxpmU6+6n1aIC3CnjscfAHqSAKGv8CO/Jh+Uirc8ATRpSqa73f2Nnj9tRCqwCOnFOCEzu0w5l3Ppz2Qpif04P+QbebZehSVaBJ4W01R2i8Rac3IuZDhZVaek1X24HFxUOd/rvHpbhz8eeANdnsWCTkAm+0sD+iKsWKICRMxFZfCK/SPldAcjXZsOsEMTqfx7ZWyCc7GeesQWcmW+z3shziyQd9tdeArJWLwacly3hH3WeyuUD5JyPF9klvDBtHgTVajdU4yp+3oXsrtTmetnBz+RESxQGdLgZRlQBQog= diff --git a/README.md b/README.md index c09b610..599cec7 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,7 @@ # A booklet on the Magritte the Meta Data-Driven Framework -[![Build status][badge]][travis] - -[travis]: https://travis-ci.org/SquareBracketAssociates/Booklet-Magritte -[badge]: https://travis-ci.org/SquareBracketAssociates/Booklet-Magritte.svg?branch=master - -The result from the latest successful Travis build can be found [on Bintray (PDF)](https://bintray.com/squarebracketassociates/wip/download_file?file_path=magritte-wip.pdf). - -## To contribute - -- Fork -- Do pull Request +[![Download PDF](https://img.shields.io/badge/Download-PDF-9cf.svg)](https://github.com/SquareBracketAssociates/Booklet-Maggrite/releases/download/latest/magritte-wip.pdf) +[![Centralized book generation](https://github.com/SquareBracketAssociates/Booklet-Maggrite/actions/workflows/main.yml/badge.svg)](https://github.com/SquareBracketAssociates/Booklet-Maggrite/actions/workflows/main.yml) ## To latex it locally diff --git a/magritte.pillar b/index.pillar similarity index 100% rename from magritte.pillar rename to index.pillar