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