Skip to content

Commit

Permalink
ci(.github): update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
abgox committed Sep 1, 2024
1 parent 0c30d47 commit e471c6c
Showing 1 changed file with 26 additions and 12 deletions.
38 changes: 26 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,37 @@ on:
types: [completed]

permissions:
contents: write
contents: read
pages: write
id-token: write

jobs:
deploy-gh-pages:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: nojekyll
run: |-
> .nojekyll
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
branch: pages
folder: .
source: ./
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit e471c6c

Please sign in to comment.