Skip to content

Commit

Permalink
Deploy pages with actions/deploy-pages (#154)
Browse files Browse the repository at this point in the history
* ci: Rename workflow file / Use Ruby 3.3

* Add `workflow_dispatch`

* ci: Deploy pages with actions/deploy-pages
  • Loading branch information
toshimaru authored Jul 5, 2024
1 parent 0e1740b commit 721ec46
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 22 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Deploy
on:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
bundler-cache: true
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Jekyll Build
run: bundle exec jekyll build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
deploy:
runs-on: ubuntu-latest
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
22 changes: 0 additions & 22 deletions .github/workflows/gh-pages.yml

This file was deleted.

0 comments on commit 721ec46

Please sign in to comment.