Skip to content

Commit

Permalink
Update GitHub Actions workflow with correct permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeinazarov committed Aug 4, 2024
1 parent 8958f46 commit df6b4b9
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

permissions:
id-token: write
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: 2.7

- name: Install dependencies
run: bundle install

- name: Build site
run: bundle exec jekyll build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site

0 comments on commit df6b4b9

Please sign in to comment.