Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andybuibui committed Mar 24, 2024
1 parent bd3fe2f commit 8d4100c
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
name: GitHub Actions Build and Deploy Demo
on:
push:
branches:
- main
branches: ["main"]
permissions:
contents: read
pages: write
id-token: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v4

- name: Install dependencies
run: npm install

- name: Build and Deploy
- name: Build
run: npm run build

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
env:
with:
ACCESS_TOKEN: ${{ secrets.GIT_TOKEN }}
BRANCH: gh-pages
FOLDER: dist
BUILD_SCRIPT: npm install && npm run build

0 comments on commit 8d4100c

Please sign in to comment.