Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paddy testing his composite action #26

Merged
merged 3 commits into from
Nov 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 4 additions & 22 deletions .github/workflows/slides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
workflow_dispatch:
pull_request:

concurrency:
cancel-in-progress: true
Expand All @@ -17,27 +18,8 @@ jobs:
BUNDLE_GEMFILE: ${{ github.workspace }}/slides/Gemfile
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
- uses: paddyroddy/.github/actions/ruby/jekyll@v0
with:
docs-directory: slides
github-token: ${{ secrets.GITHUB_TOKEN }}
ruby-version: "3.2"
bundler-cache: true

- name: Install and Build
working-directory: ./slides
run: >-
JEKYLL_GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
JEKYLL_ENV=production
bundle exec jekyll build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./slides/_site
publish_branch: gh-pages
user_name: github-actions[bot]
user_email: github-actions[bot]@users.noreply.github.com