Skip to content

Commit 1bf2a86

Browse files
authored
Merge pull request #48 from ocefpaf/deploy_with_actions
test deploy with actions
2 parents 17a61e1 + f313f0e commit 1bf2a86

1 file changed

Lines changed: 14 additions & 16 deletions

File tree

.github/workflows/docs.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
name: GH-Pages Status
2-
on:
3-
page_build
4-
5-
jobs:
6-
see-page-build-payload:
1+
name: Jekyll Deploy
2+
3+
on: [push]
4+
5+
jobs:
6+
build_and_deploy:
77
runs-on: ubuntu-latest
8-
steps:
9-
- name: check status
10-
run: |
11-
import os
12-
status, errormsg = os.getenv('STATUS'), os.getenv('ERROR')
13-
assert status == 'built', 'There was an error building the page on GitHub pages.\n\nStatus: {}\n\nError messsage: {}'.format(status, errormsg)
14-
shell: python
15-
env:
16-
STATUS: ${{ github.event.build.status }}
17-
ERROR: ${{ github.event.build.error.message }}
8+
steps:
9+
- uses: actions/checkout@v1
10+
- name: Build & Deploy to GitHub Pages
11+
env:
12+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
14+
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
15+
uses: ocefpaf/jekyll-deploy-gh-pages@master

0 commit comments

Comments
 (0)