mirror of
https://github.com/easingthemes/ssh-deploy.git
synced 2024-11-19 08:08:05 +08:00
CI - split git commands
This commit is contained in:
10
.github/workflows/version-bump-publish.yml
vendored
10
.github/workflows/version-bump-publish.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Manage version
|
name: Release
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
@@ -21,10 +21,10 @@ jobs:
|
|||||||
npm install
|
npm install
|
||||||
npm run lint
|
npm run lint
|
||||||
npm run build
|
npm run build
|
||||||
- name: Setup version and git tag
|
- name: Setup version
|
||||||
if: ${{ github.event.inputs.tag != '' }}
|
if: ${{ github.event.inputs.tag != '' }}
|
||||||
run: |
|
run: |
|
||||||
npm version ${{ github.event.inputs.tag }}
|
npm version ${{ github.event.inputs.tag }}
|
||||||
git tag -a v${{ github.event.inputs.tag }} -m "v${{ github.event.inputs.tag }}"
|
git push
|
||||||
- name: Push changes
|
- name: Add tag
|
||||||
run: git push
|
run: git tag -a v${{ github.event.inputs.tag }} -m "v${{ github.event.inputs.tag }}"
|
||||||
|
Reference in New Issue
Block a user