Skip to content

Commit

Permalink
add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaehashi committed Nov 11, 2021
1 parent 814cdce commit 1287523
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/generate-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Generate and Deploy

on:
workflow_dispatch:

jobs:
generate-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1
with:
persist-credentials: false

- name: Generate 🏭
run: |
cp -a _skeleton/ _generate/
pip3 install -U PyGithub
./generate.py _generate/pre/index.html
- name: Deploy 🚀
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./_generate
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/_generate
Empty file added _skeleton/.nojekyll
Empty file.
1 change: 1 addition & 0 deletions _skeleton/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pip.cupy.dev
3 changes: 3 additions & 0 deletions _skeleton/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<html><head>
<meta http-equiv="refresh" content="0;URL=https://github.com/cupy/pip.cupy.dev/">
</head></html>
Empty file added _skeleton/pre/.gitignore
Empty file.

0 comments on commit 1287523

Please sign in to comment.