From 29672f43b409cdfc3f74128a1058c36f44d05a8a Mon Sep 17 00:00:00 2001 From: Haoyu Xu Date: Sun, 25 Jun 2023 02:44:19 -0400 Subject: [PATCH] build(actions): init auto build github actions --- .github/workflows/gh-pages.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/gh-pages.yaml diff --git a/.github/workflows/gh-pages.yaml b/.github/workflows/gh-pages.yaml new file mode 100644 index 0000000..1481b62 --- /dev/null +++ b/.github/workflows/gh-pages.yaml @@ -0,0 +1,32 @@ +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 ci + - 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 }} \ No newline at end of file