Skip to content

add merge from master to gh-pages #4

add merge from master to gh-pages

add merge from master to gh-pages #4

name: Deploy to GitHub Pages
on:
pull_request_target:
types:
- closed
branches:
- master
jobs:
if_merged:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '18'
- name: Install Dependencies
run: npm install
- name: Build
run: npm run build
- name: Merge from master
run: git checkout gh-pages
run: git merge master

Check failure on line 30 in .github/workflows/gh-pages-deploy.yml

View workflow run for this annotation

GitHub Actions / Deploy to GitHub Pages

Invalid workflow file

The workflow is not valid. .github/workflows/gh-pages-deploy.yml (Line: 30, Col: 7): 'run' is already defined
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs