Skip to content

Commit

Permalink
new github deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
coloshword committed Jul 25, 2024
1 parent aad5617 commit a56dcdb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
name: Build and Deploy

on:
push:
branches:
- main

jobs:
build:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -31,9 +28,14 @@ jobs:
exit 1
fi
- name: Copy index.html and tester.js to dist
run: |
cp index.html dist/
cp tester.js dist/
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./dist
publish_dir: ./dist

0 comments on commit a56dcdb

Please sign in to comment.