From 19ddd401343242697c4871e77995145a73655083 Mon Sep 17 00:00:00 2001 From: Maximilien Rigaut Date: Wed, 15 Jun 2022 17:41:17 +0200 Subject: [PATCH] Another emergency push to release --- .github/workflows/deploy.yml | 31 +++++++++++++++++++++++++++++++ .github/workflows/python-app.yml | 20 -------------------- README.md | 5 ++++- 3 files changed, 35 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..7391ff3 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,31 @@ +# This workflow will install Python dependencies, and deploy the application to GitHub Pages. + +name: Python application + +on: + push: + branches: [ main, release ] + pull_request: + branches: [ main, release ] + +jobs: + deployment: + runs-on: ubuntu-latest + environment: production + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.10 + uses: actions/setup-python@v2 + with: + python-version: "3.10" + - name: Build the application + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install -e . + python -m bootstraparse "example_userfiles" "docs" + - name: deploy + uses: JamesIves/github-pages-deploy-action@v4.3.3 + with: + branch: gh-pages # The branch the action should deploy to. + folder: docs \ No newline at end of file diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 52af6c2..1dd3356 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -40,23 +40,3 @@ jobs: - name: Test with pytest run: | pytest --cov-fail-under=100 -o xfail_strict=true --cov-report=term-missing . - deployment: - runs-on: ubuntu-latest - environment: production - steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.10 - uses: actions/setup-python@v2 - with: - python-version: "3.10" - - name: Build the application - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install -e . - python -m bootstraparse "example_userfiles" "docs" - - name: deploy - uses: JamesIves/github-pages-deploy-action@v4.3.3 - with: - branch: gh-pages # The branch the action should deploy to. - folder: docs diff --git a/README.md b/README.md index da087b2..45931c0 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,10 @@ bootstraparse aims to be customisable in that regard, but its first iteration an You can refer to the `example_userfiles` for an idea of what the parser expects you to feed it and find an example of our automated generation at https://idle-org.github.io/bootstraparse/ for this particular folder. Or you can run the program yourself for the same result! -[![Python application](https://github.com/idle-org/bootstraparse/actions/workflows/python-app.yml/badge.svg?branch=main)](https://github.com/idle-org/bootstraparse/actions/workflows/python-app.yml) +- Main + - [![Python Main](https://github.com/idle-org/bootstraparse/actions/workflows/python-app.yml/badge.svg?branch=main)](https://github.com/idle-org/bootstraparse/actions/workflows/python-app.yml) +- Releases + - [![Python Release](https://github.com/idle-org/bootstraparse/actions/workflows/python-app.yml/badge.svg?branch=release)](https://github.com/idle-org/bootstraparse/actions/workflows/python-app.yml) --- ## Roadmap