Skip to content

Commit

Permalink
Deploy v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Mmasoud1 committed May 18, 2024
1 parent 1c82595 commit f018c67
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:

steps:
- name: Checkout repository content
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./v3
publish_branch: demo
destination_dir: v3
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/ghpages.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name: Build and Deploy

on:
push:
branches:
- master

jobs:
build-and-publish-live-demo:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -14,16 +17,17 @@ jobs:
run: |
npm install
npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: demo # The branch the action should deploy to.
folder: dist # The folder the action should deploy.
branch: demo
folder: dist

- name: Trigger Deploy v3
run: |
curl -X POST -H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/neuroneural/brainchop/actions/workflows/deploy-v3.yml/dispatches \
-d '{"ref":"master"}'
-d '{"ref":"master"}'

0 comments on commit f018c67

Please sign in to comment.