Skip to content

Commit

Permalink
👷 auto release with files
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidZhang73 committed Feb 28, 2022
1 parent 36e48cd commit 4ca0220
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: v2
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
Expand All @@ -18,8 +20,24 @@ jobs:
run: npm install
- name: Build
run: npm run build
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
- uses: montudor/action-zip@v1
with:
args: zip -qq -r vidat-v${{ steps.package-version.outputs.current-version}}.zip ./*
working-directory: dist
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: |
vidat-v${{ steps.package-version.outputs.current-version}}.zip
- name: Deploy with ssh
uses: easingthemes/ssh-deploy@main
if: ${{ SSH_PRIVATE_KEY != '' && REMOTE_HOST != '' && REMOTE_USER != '' }}
env:
SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
ARGS: "-rltgoDzvO"
Expand Down

0 comments on commit 4ca0220

Please sign in to comment.