Skip to content

Commit

Permalink
Add deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dassencio committed Jan 4, 2021
1 parent 250b09f commit b6fcda7
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Deployment

on:
push:
branches: [master]
workflow_dispatch:

jobs:
deploy-to-github-pages:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build NMEA Generator
run: |
mkdir app
./build -o app/index.html
- name: Deploy NMEA Generator to GitHub Pages
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
uses: crazy-max/ghaction-github-pages@v2
with:
build_dir: app
commit_message: Deploy build from ${{github.sha}}
fqdn: www.nmeagen.org
target_branch: gh-pages
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
![Deployment](https://github.com/dassencio/nmeagen/workflows/Deployment/badge.svg)
![Functional tests](https://github.com/dassencio/nmeagen/workflows/Functional%20tests/badge.svg)
![Static code analysis](https://github.com/dassencio/nmeagen/workflows/Static%20code%20analysis/badge.svg)

Expand Down

0 comments on commit b6fcda7

Please sign in to comment.