mirror of
https://github.com/easingthemes/ssh-deploy.git
synced 2024-11-19 08:08:05 +08:00
Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
7e2c0f29d6 | ||
|
e9c43c6900 | ||
|
9ae3c340cb | ||
|
386c8766a0 | ||
|
130901534a | ||
|
8b977327bb | ||
|
880f3b6b88 | ||
|
ec4a00fe02 | ||
|
a04c641775 | ||
|
9483c83d88 | ||
|
e41d593e15 |
27
.github/workflows/build.yml
vendored
Normal file
27
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
name: Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ '**' ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
node-version: [14.x]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
- run: npm i
|
||||||
|
- run: npm run lint
|
||||||
|
- run: npm run build
|
33
.github/workflows/version-bump-publish.yml
vendored
Normal file
33
.github/workflows/version-bump-publish.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
name: Release
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
tag:
|
||||||
|
description: '<newversion> | major | minor | patch'
|
||||||
|
required: true
|
||||||
|
default: 'patch'
|
||||||
|
jobs:
|
||||||
|
checkout:
|
||||||
|
name: checkout
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- run: |
|
||||||
|
git config user.name github-actions
|
||||||
|
git config user.email github-actions@github.com
|
||||||
|
- name: Setup NodeJS and run build
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 12
|
||||||
|
- run: |
|
||||||
|
npm ci
|
||||||
|
npm run lint
|
||||||
|
npm run build
|
||||||
|
- name: Setup version
|
||||||
|
if: ${{ github.event.inputs.tag != '' }}
|
||||||
|
run: |
|
||||||
|
npm version ${{ github.event.inputs.tag }}
|
||||||
|
git push
|
||||||
|
- name: Add tag
|
||||||
|
run: git tag -a v${{ github.event.inputs.tag }} -m "v${{ github.event.inputs.tag }}"
|
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ssh-deploy",
|
"name": "ssh-deploy",
|
||||||
"version": "2.1.5",
|
"version": "2.1.7",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ssh-deploy",
|
"name": "ssh-deploy",
|
||||||
"version": "2.1.5",
|
"version": "2.1.7",
|
||||||
"description": "This GitHub Action deploys specific directory from `GITHUB_WORKSPACE` to a folder on a server via rsync over ssh.",
|
"description": "This GitHub Action deploys specific directory from `GITHUB_WORKSPACE` to a folder on a server via rsync over ssh.",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
Reference in New Issue
Block a user