32 lines
692 B
YAML
32 lines
692 B
YAML
name: Build release and push to Github
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [20.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Install dependencies
|
|
run: npm i
|
|
- name: Build all
|
|
run: npm run build-all
|
|
- name: Deploy
|
|
uses: s0/git-publish-subdir-action@develop
|
|
env:
|
|
REPO: self
|
|
BRANCH: gh-pages
|
|
FOLDER: release
|
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |