Skip to content

Commit

Permalink
fix: deploy script fix
Browse files Browse the repository at this point in the history
Signed-off-by: michalrozekariane <[email protected]>
  • Loading branch information
michalrozekariane committed Mar 19, 2024
1 parent ec09f39 commit 1a6125d
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
name: Deploy
name: Deploy to GitHub Pages

on:
push:
branches:
- deploy-test

jobs:
deploy:
name: Deploy
build-and-deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- 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]>"
- uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '21'

- name: Install dependencies
run: npm install

- name: Build and Deploy
run: npm run deploy -- -u "github-actions-bot <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1a6125d

Please sign in to comment.