Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 7e38fd4e authored by David Aparicio's avatar David Aparicio
Browse files

:hammer: refactor: workflow Deploy Jekyll website to GitHub Pages

parent 0986fc35
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# documentation. # documentation.
# Sample workflow for building and deploying a Jekyll site to GitHub Pages # Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll site to GitHub Pages name: Build Jekyll site to push to GitHub Pages
on: on:
push: push:
...@@ -16,14 +16,11 @@ on: ...@@ -16,14 +16,11 @@ on:
#https://crontab.guru/#37_13_*_*_3 #https://crontab.guru/#37_13_*_*_3
- cron: "37 13 * * 3" - cron: "37 13 * * 3"
# Fix jekyll-action: failed to publish artifacts 403 Resource not accessible by integration
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions: permissions:
pages: write # to deploy to Pages pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source id-token: write # to verify the deployment originates from an appropriate source
contents: write # fatal: unable to access 'repo_url': The requested URL returned error: 403 contents: write # fatal: unable to access 'repo_url': The requested URL returned error: 403
#packages: write
#deployments: write
# Allow one concurrent deployment # Allow one concurrent deployment
concurrency: concurrency:
...@@ -31,7 +28,7 @@ concurrency: ...@@ -31,7 +28,7 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
jekyll: buildAndUpload:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
...@@ -47,7 +44,6 @@ jobs: ...@@ -47,7 +44,6 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-gems- ${{ runner.os }}-gems-
# Use jekyll-action
- uses: helaili/jekyll-action@v2 - uses: helaili/jekyll-action@v2
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
...@@ -55,21 +51,12 @@ jobs: ...@@ -55,21 +51,12 @@ jobs:
# Specify the Jekyll source location as a parameter # Specify the Jekyll source location as a parameter
#jekyll_src: 'sample_site' #jekyll_src: 'sample_site'
# Deploy to the github-pages environment # Deploy to the github-pages environment, via bot (pages-build-deployment)
environment: environment:
name: github-pages name: github-pages
url: ${{ steps.deployment.outputs.page_url }} url: ${{ steps.deployment.outputs.page_url }}
# https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site #https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site
# Automatically uploads an artifact from the './_site' directory by default
#- name: Upload artifact
# uses: actions/upload-pages-artifact@v1
# https://github.com/actions/deploy-pages#usage
#- name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v2 # or the latest "vX.X.X" version tag for this action
#https://jekyllrb.com/docs/continuous-integration/github-actions/ #https://jekyllrb.com/docs/continuous-integration/github-actions/
#https://github.com/MichaelCurrin/jekyll-actions-quickstart #https://github.com/MichaelCurrin/jekyll-actions-quickstart
#https://github.com/Arishti-Live/arishti-live.github.io/blob/master/.github/workflows/jekyll.yml #https://github.com/Arishti-Live/arishti-live.github.io/blob/master/.github/workflows/jekyll.yml
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment