Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hecomi authored Nov 25, 2021
1 parent 0721bef commit e4c513b
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Create UPM branches and run NPM publish

on:
push:
tags:
- v*

jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Get tag name
id: tag
run: echo ::set-output name=name::${GITHUB_REF#refs/tags/v}

- name: Create UPM branch
uses: hecomi/create-upm-branch-action@main
with:
git-tag: ${{steps.tag.outputs.name}}
pkg-root-dir-path: Assets/uNvPipe
main-branch: master
root-files: README.md LICENSE.md CHANGELOG.md Third_Party_Notices.md

- name: Setup node
uses: actions/setup-node@v2
with:
registry-url: 'https://registry.npmjs.org'

- name: NPM publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit e4c513b

Please sign in to comment.