mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-02-07 23:03:09 +08:00
Update publish.yml
This commit is contained in:
parent
9aa1490087
commit
71b451f02a
10
.github/workflows/publish.yml
vendored
10
.github/workflows/publish.yml
vendored
@ -4,6 +4,11 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
types:
|
||||||
|
- closed
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
@ -22,14 +27,15 @@ jobs:
|
|||||||
git checkout master
|
git checkout master
|
||||||
git config user.email "$GH_EMAIL"
|
git config user.email "$GH_EMAIL"
|
||||||
git config user.name "Francisco Hodge"
|
git config user.name "Francisco Hodge"
|
||||||
git add . || true
|
|
||||||
git commit -m "Build Update" || true
|
|
||||||
env:
|
env:
|
||||||
GH_EMAIL: ${{secrets.GH_EMAIL}}
|
GH_EMAIL: ${{secrets.GH_EMAIL}}
|
||||||
|
|
||||||
- name: Bump version
|
- name: Bump version
|
||||||
run: |
|
run: |
|
||||||
npm version patch
|
npm version patch
|
||||||
|
npm run build
|
||||||
|
git add . || true
|
||||||
|
git commit -m "Build Update" || true
|
||||||
git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY"
|
git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY"
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
Loading…
Reference in New Issue
Block a user