Skip to content

Commit

Permalink
Merge pull request #139 from netceteragroup/ci/update-github-action
Browse files Browse the repository at this point in the history
ci(update): update build-deploy github action
  • Loading branch information
velinovskav authored Jan 31, 2024
2 parents bf82616 + c199f17 commit 4974957
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:
build:
Expand Down Expand Up @@ -58,10 +59,15 @@ jobs:
- name: build
run: npm run build

- name: deploy
if: success() && github.ref == 'refs/heads/master'
deploy:
runs-on: ubuntu-latest
needs: build
permissions:
contents: write

steps:
- name: deploy 🚀
if: ${{ github.ref == 'refs/heads/master' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: dist/data-grid-demo

0 comments on commit 4974957

Please sign in to comment.