Skip to content

Instantly share code, notes, and snippets.

@vipulwairagade
Created July 17, 2020 15:38
Show Gist options
  • Save vipulwairagade/76d2693aeac7c3469c0e4bf7d89ab314 to your computer and use it in GitHub Desktop.
Save vipulwairagade/76d2693aeac7c3469c0e4bf7d89ab314 to your computer and use it in GitHub Desktop.
Deploy Action of Github Workflow
name: Deploy to Github Pages
on:
push:
branches:
- develop
jobs:
deploy:
name: Deploy Application
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Create Node Environment
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Install Packages and Build Application
run: |
npm install -g @vue/cli yarn
yarn install
yarn build
- name: Deploy
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: master
FOLDER: dist
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@eliyahuKriel
Copy link

eliyahuKriel commented Nov 22, 2020

great! is a way to move the dist folder to other repo ? REPO: reponame ?
i have a backend server in other repo, how can i move the dist to it?
thanks man!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment