ci: print netlify output #240
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Netlify | |
on: push | |
jobs: | |
Deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: yarn install --frozen-lockfile | |
- run: npx wsrun -mpc build | |
- 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 | |
- name: Netlify output | |
run: echo ${{ steps.netlify.outputs.NETLIFY_OUTPUT }} | |
- name: Status check | |
uses: Sibz/[email protected] | |
with: | |
authToken: ${{ secrets.GITHUB_TOKEN }} | |
context: Netlify Site | |
state: success | |
target_url: https://${{ env.BRANCH_NAME }}--rdfjs-elements.netlify.app |