Skip to content

Commit

Permalink
config: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
LVCarnevalli committed Jul 12, 2024
1 parent 2d606ad commit 9cab9a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 31 deletions.
38 changes: 8 additions & 30 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ on:

jobs:
build:
name: Build Docusaurus
name: Deploy to GitHub Pages

# 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

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -19,35 +25,7 @@ jobs:
with:
node-version: 18
cache: npm

- name: Install dependencies
run: npm ci
- name: Build website
run: npm run build

- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3
with:
path: build

deploy:
name: Deploy to GitHub Pages
needs: build

# 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

# Deploy to the github-pages environment
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v4
- name: Deploy to GitHub Pages
- name: Build and deploy website
run: npm run deploy
1 change: 0 additions & 1 deletion .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
with:
node-version: 18
cache: npm

- name: Install dependencies
run: npm ci
- name: Test build website
Expand Down

0 comments on commit 9cab9a8

Please sign in to comment.