-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Have the deploy workflows use the build workflow file instead
- Loading branch information
1 parent
6b6f4b7
commit 27837fc
Showing
3 changed files
with
11 additions
and
39 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,6 +1,7 @@ | ||
name: Build | ||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
pull_request: | ||
jobs: | ||
build: | ||
|
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
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 |
---|---|---|
|
@@ -3,22 +3,12 @@ on: | |
workflow_dispatch: | ||
jobs: | ||
build: | ||
name: Build and Deploy | ||
runs-on: ubuntu-latest | ||
name: Build | ||
uses: ./.github/workflows/build.yml | ||
deploy: | ||
name: Deploy | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: '0' | ||
persist-credentials: false | ||
submodules: 'recursive' | ||
- name: Setup Node | ||
uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: '22' | ||
- name: Build | ||
run: npm install && npm run build | ||
- name: Deploy | ||
- name: Deploy to GitHub Pages (gh-pages branch) | ||
uses: JamesIves/[email protected] | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main'}} | ||
with: | ||
|