Skip to content

feat: add staging (pre-release) channel to download page #1

feat: add staging (pre-release) channel to download page

feat: add staging (pre-release) channel to download page #1

Workflow file for this run

name: Build and deploy
on:
push:
branches:
- main
workflow_dispatch:
# Permissions for GitHub Pages deployment (build_type: workflow).
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment, cancelling in-progress runs.
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 22
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
# `yarn build` runs the prebuild script that fetches the latest
# NethSecurity version and download tables, then builds the static site.
- name: Build
run: yarn build
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: ./build
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4