blog: add 2024 code audit #923
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: Build | |
on: | |
# Run the build for pushes and pull requests targeting master | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
# Checkout and setup | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
# Install and build | |
- name: Install | |
run: npm ci | |
- name: Build | |
run: npm run build | |
# Deploy, limited to the master branch | |
- name: Deploy | |
if: success() && github.ref == 'refs/heads/master' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
publish_dir: ./docs/.vuepress/dist | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
cname: bitcoindevkit.org | |
user_name: "github-actions[bot]" | |
user_email: "github-actions[bot]@users.noreply.github.com" | |
# Run linkcheck, propagate linkcheck failure through grep pipe | |
- name: Linkcheck | |
run: set -o pipefail; npm run linkcheck 2>/dev/null | grep "Getting links from\|BROKEN" | |
continue-on-error: true |