Merge pull request #1835 from mashehu/add-static-build-gha #1
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 pipelines.json file | |
on: | |
push: | |
branches: | |
- netlfiy-test | |
- astro | |
workflow_dispatch: | |
jobs: | |
build-pipeline-json: | |
runs-on: ubuntu-latest | |
environment: static-file-build | |
steps: | |
# Set up the main website repo | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Don't do a shallow clone | |
# install npm dependencies | |
- name: Set up node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
cache: 'npm' | |
- run: npm install | |
- name: create pipeline.json | |
run: npm run build-pipeline-json | |
env: | |
GITHUB_TOKEN: ${{ secrets.PIPLINE_JSON_BUILD_TOKEN }} | |
# Commit and push the changes | |
- name: Commit and push changes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
default_author: github_actions |