Skip to content

Commit

Permalink
fix gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
poxrud committed Aug 28, 2023
1 parent 97ac8c6 commit 0442ea6
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@ on:
push:
branches: [main]

permissions:
pages: write # to deploy to Pages
id-token: write

jobs:
build:
environment:
name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-22.04

steps:
Expand All @@ -26,4 +34,17 @@ jobs:
bundler-cache: true

- name: Build site
run: JEKYLL_ENV=production bundle exec jekyll build
env:
JEKYLL_ENV: production
run: bundle exec jekyll build

- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v2

- name: "what is page_url"
run: echo "${{ steps.deployment.outputs.page_url }}"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 0442ea6

Please sign in to comment.