Skip to content

Commit

Permalink
ci: use action for netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Nov 25, 2024
1 parent 76843c2 commit fae69d6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@ jobs:

- uses: nelonoel/[email protected]

- run: npm i -g netlify-cli

- name: Publish preview
run: netlify deploy --dir dist -a ${{ secrets.NETLIFY_AUTH_TOKEN }} -s ${{ secrets.NETLIFY_SITE_ID }} --filter rdfjs-elements-demos -m "Preview ${{ env.BRANCH_NAME }}" --alias ${{ env.BRANCH_NAME }}
- uses: jsmrcaga/[email protected]
with:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
build_directory: dist
monorepo_package: rdfjs-elements-demos
deploy_alias: ${{ env.BRANCH_NAME }}
NETLIFY_DEPLOY_TO_PROD: ${{ env.BRANCH_NAME }} == 'master'

- name: Status check
uses: Sibz/[email protected]
Expand Down

0 comments on commit fae69d6

Please sign in to comment.