-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b915908
commit dc8ba8f
Showing
1 changed file
with
12 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
name: GitHub Pages | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*.*.*' | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
@@ -14,30 +14,32 @@ jobs: | |
group: ${{ github.workflow }}-${{ github.ref }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Node 18.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 18.18.2 | ||
|
||
- name: set env | ||
run: | | ||
export NODE_OPTIONS=--openssl-legacy-provider | ||
- name: install dependency | ||
run: npm install | ||
|
||
- name: Run Build | ||
run: | | ||
npm run build | ||
- name: Deploy to GitHub Pages | ||
if: github.ref == 'refs/heads/main' | ||
if: | | ||
!contains(github.ref, 'rc') && | ||
!contains(github.ref, 'RC') && | ||
!contains(github.ref, 'alpha') && | ||
!contains(github.ref, 'M') && | ||
!contains(github.ref, 'beta') | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
folder: build # Replace "dist" with the output directory of your build | ||
|
||
release: | ||
needs: deploy | ||
runs-on: ubuntu-latest | ||
|
@@ -55,4 +57,4 @@ jobs: | |
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
prerelease: false |