Created
July 17, 2020 15:38
-
-
Save vipulwairagade/76d2693aeac7c3469c0e4bf7d89ab314 to your computer and use it in GitHub Desktop.
Deploy Action of Github Workflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!!