Skip to content

Commit

Permalink
ci: netlify direct
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Jan 19, 2024
1 parent 4c5e9cc commit fed992f
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,10 @@ jobs:

- uses: nelonoel/[email protected]

- name: Publish preview
id: netlify
uses: jsmrcaga/[email protected]
continue-on-error: true
with:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_DEPLOY_MESSAGE: Preview ${{ env.BRANCH_NAME }}
build_directory: dist
deploy_alias: ${{ env.BRANCH_NAME }}
NETLIFY_DEPLOY_TO_PROD: false
build_command: echo ""
monorepo_package: rdfjs-elements-demo
- run: npm i -g netlify-cli

- name: Netlify output
run: echo ${{ steps.netlify.outputs.NETLIFY_OUTPUT }}
- 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 }}

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

0 comments on commit fed992f

Please sign in to comment.