Skip to content

Commit 0e773c8

Browse files
committed
Update GitHub Actions to trigger on dev branch and deploy to gh-pages
1 parent 4b0b61a commit 0e773c8

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Deploy to GitHub Pages
2+
on:
3+
push:
4+
branches: [ dev ] # Trigger on dev branch pushes
5+
jobs:
6+
build-and-deploy:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- uses: ruby/setup-ruby@v1
11+
with:
12+
ruby-version: 3.1
13+
bundler-cache: true
14+
- run: bundle exec jekyll build
15+
- uses: peaceiris/actions-gh-pages@v3
16+
with:
17+
github_token: ${{ secrets.GITHUB_TOKEN }}
18+
publish_dir: ./_site
19+
publish_branch: gh-pages

0 commit comments

Comments
 (0)