Skip to content

Merge pull request #1151 from nwtgck/actions-build/nwtgck-dependabot/… #3371

Merge pull request #1151 from nwtgck/actions-build/nwtgck-dependabot/…

Merge pull request #1151 from nwtgck/actions-build/nwtgck-dependabot/… #3371

Workflow file for this run

name: "build-test"
on:
push:
pull_request:
permissions:
statuses: write
deployments: write
pull-requests: write
jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/checkout@v4
- run: npm ci
- run: npm run all
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Create a simple Web site
run: mkdir -p deploy_dist && echo -e "<pre>$(date -u)\n$GITHUB_SHA\n$GITHUB_REF</pre>" > deploy_dist/index.html
- uses: ./
id: deploy-to-netlify
with:
publish-dir: './deploy_dist'
production-branch: master
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
functions-dir: './functions-test'
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
- run: "echo 'outputs.deploy-url: ${{ steps.deploy-to-netlify.outputs.deploy-url }}'"