Skip to content

Commit 954734e

Browse files
authored
Create main.yml
1 parent 0f77155 commit 954734e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/main.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Create UPM branches and run NPM publish
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
update:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Tag name
18+
id: tag
19+
run: echo ::set-output name=name::${GITHUB_REF#refs/tags/v}
20+
21+
- name: Create UPM Branch
22+
uses: hecomi/create-upm-branch-action@main
23+
with:
24+
git-tag: ${{ steps.tag.outputs.name }}
25+
pkg-root-dir-path: Assets/uDesktopDuplication
26+
main-branch: master
27+
28+
- name: Setup node
29+
uses: actions/setup-node@v2
30+
with:
31+
registry-url: 'https://registry.npmjs.org'
32+
33+
- name: NPM publish
34+
run: npm publish --access public
35+
env:
36+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)