Skip to content

help using actions for deploy #119991

Answered by sule26
YaronPeres asked this question in Actions
Apr 17, 2024 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Try this:

https://github.com/peaceiris/actions-gh-pages

name: Update deploy branch with dist folder contents

on:
  workflow_dispatch:
  push:
    paths-ignore:
    - '.github/**' # Ignore changes towards the .github directory
    branches:
    - main # Only trigger on the main branch

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Perform Checkout
      uses: actions/checkout@v2
      
    - name: Deploy
      uses: peaceiris/actions-gh-pages@v3
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}
        publish_dir: ./dist
        publish_branch: deploy

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@YaronPeres
Comment options

@YaronPeres
Comment options

@sule26
Comment options

@YaronPeres
Comment options

Answer selected by YaronPeres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question
2 participants