Skip to content

Commit

Permalink
update the action to finaly work
Browse files Browse the repository at this point in the history
  • Loading branch information
suchov committed Sep 10, 2023
1 parent 5f78a2a commit 844db18
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/publish-to-master.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: Deploy to GitHub Pages

permissions:
contents: write
on:
push:
branches:
Expand All @@ -11,16 +9,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Build
run: |
npm ci
npm run-script build
cp ./CNAME ./build/CNAME
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
uses: peaceiris/actions-gh-pages@v3
with:
branch: master
folder: build
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: master
publish_dir: ./build

0 comments on commit 844db18

Please sign in to comment.