Skip to content

Commit

Permalink
Add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sourabhv committed Jun 16, 2023
1 parent a767a88 commit 6176e5c
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest

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

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x

- name: Install dependencies
run: make init

- name: Build web version
run: make web-build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/web
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
build
.python-version
*.egg-info
.vscode
2 changes: 0 additions & 2 deletions .vscode/settings.json

This file was deleted.

3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ run:
web:
pygbag flappy.py

web-build:
pygbag --build flappy.py

init:
@pip install -U pip; \
pip install -e ".[dev]"; \
Expand Down

0 comments on commit 6176e5c

Please sign in to comment.