Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
oezguercelebi committed Jan 14, 2025
1 parent 8060384 commit 2c46473
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,27 @@ on:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
persist-credentials: false
node-version: '20'
cache: 'npm'

- name: Install Dependencies
run: npm ci

- name: Build
run: |
yarn install
yarn build
env:
CI: false
run: npm run build

- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v4
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build
folder: dist
branch: gh-pages
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2c46473

Please sign in to comment.