Skip to content

Commit

Permalink
Merge 1806cd9 into 81c5957
Browse files Browse the repository at this point in the history
  • Loading branch information
sue445 committed Nov 5, 2022
2 parents 81c5957 + 1806cd9 commit 68bac12
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches:
- master

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
bundler-cache: true

- run: bundle exec yard

- name: Setup Pages
uses: actions/configure-pages@v1
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: './doc'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@main

- name: Slack Notification (not success)
uses: lazy-actions/slatify@master
if: "! success()"
continue-on-error: true
with:
job_name: "*pages*"
type: ${{ job.status }}
icon_emoji: ":octocat:"
url: ${{ secrets.SLACK_WEBHOOK }}
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .yardopts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--markup markdown
--no-private
2 changes: 2 additions & 0 deletions prismdb.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ Gem::Specification.new do |spec|

spec.add_dependency "faraday", ">= 2.0.0"
spec.add_dependency "faraday-mashify"

spec.add_development_dependency "yard"
end

0 comments on commit 68bac12

Please sign in to comment.