Skip to content

Commit

Permalink
add commit
Browse files Browse the repository at this point in the history
  • Loading branch information
raulfdm committed Dec 27, 2023
1 parent 63f9922 commit 0023bd6
Showing 1 changed file with 30 additions and 34 deletions.
64 changes: 30 additions & 34 deletions .github/workflows/website-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,36 @@ jobs:
website:
runs-on: ubuntu-latest
steps:
- name: Checkout to repository
uses: actions/checkout@v4.1.1

- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.0.20

- name: Install dependencies
run: bun install --no-cache

- name: Build
run: bun run build --filter=website

- name: Netlify Deploy
id: netlify_deploy
uses: jsmrcaga/action-netlify-deploy@v2.1.0
with:
install_command: "echo Skipping installing the dependencies"
build_command: "echo Skipping building the web files"
build_directory: ./apps/website/dist
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
deploy_alias: ${{ env.BRANCH_NAME }}
NETLIFY_DEPLOY_TO_PROD: ${{ env.BRANCH_NAME == 'main' }}
monorepo_package: website

- uses: actions/github-script@v7
env:
NETLIFY_PREVIEW_URL: ${{ steps.netlify_deploy.outputs.NETLIFY_PREVIEW_URL }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand All @@ -25,38 +54,5 @@ jobs:
issue_number: issueNumber,
owner: context.repo.owner,
repo: context.repo.repo,
body: '👋 HELLO!'
body: 'Preview URL: ' + process.env.NETLIFY_PREVIEW_URL
})
# - name: Checkout to repository
# uses: actions/checkout@v4.1.1

# - name: Setup Bun
# uses: oven-sh/setup-bun@v1
# with:
# bun-version: 1.0.20

# - name: Install dependencies
# run: bun install --no-cache

# - name: Build
# run: bun run build --filter=website

# - name: Netlify Deploy
# id: netlify_deploy
# uses: jsmrcaga/action-netlify-deploy@v2.1.0
# with:
# install_command: "echo Skipping installing the dependencies"
# build_command: "echo Skipping building the web files"
# build_directory: ./apps/website/dist
# NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
# NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
# deploy_alias: ${{ env.BRANCH_NAME }}
# NETLIFY_DEPLOY_TO_PROD: ${{ env.BRANCH_NAME == 'main' }}
# monorepo_package: website

# - name: Comment PR
# uses: thollander/actions-comment-pull-request@v2
# with:
# message: |
# [Preview](${{ steps.netlify_deploy.outputs.NETLIFY_PREVIEW_URL }})

0 comments on commit 0023bd6

Please sign in to comment.