Skip to content

Commit

Permalink
MàJ de la CI pour utiliser les actions de déploiement des pages GH of…
Browse files Browse the repository at this point in the history
…ficielles (#183)
  • Loading branch information
adipasquale authored Dec 30, 2024
1 parent 87edcbd commit 36a964c
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions .github/workflows/deploy-guide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,37 @@ on:
branches:
- main
jobs:
rspec:
build:
runs-on: ubuntu-latest
name: Deploy Guide
name: Build & Upload static site
steps:
- uses: actions/checkout@v4

- name: Install Ruby & gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 3.3.6

- uses: actions/setup-node@v4
with:
node-version: 18

- run: make build-guide

- name: Deploy to GH Pages
uses: peaceiris/actions-gh-pages@v3
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
publish_dir: ./guide/output
github_token: ${{ secrets.GITHUB_TOKEN }}
path: ./guide/output

deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# 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
steps:
- id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 36a964c

Please sign in to comment.