Skip to content

Commit

Permalink
Fix static deploy and disable previous action
Browse files Browse the repository at this point in the history
  • Loading branch information
Ollie Beckwith committed Jul 28, 2023
1 parent 317efa2 commit f50f961
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: Deploy with gh-pages
on:
push:
branches:
- "master"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Dependencies
run: npm install
- name: Deploy with gh-pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npm run deploy -- -u "github-actions-bot <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# name: Deploy with gh-pages
# on:
# push:
# branches:
# - "master"
# jobs:
# deploy:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Install Dependencies
# run: npm install
# - name: Deploy with gh-pages
# run: |
# git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
# npm run deploy -- -u "github-actions-bot <[email protected]>"
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: npm install && npm predeploy
run: npm install && npm run predeploy
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
Expand Down

0 comments on commit f50f961

Please sign in to comment.