Merge pull request #176 from zazuko/wtr-up #285
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@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- run: npm ci | |
- run: npx wsrun -mpc build | |
- 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 }} | |
- 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 |