-
Notifications
You must be signed in to change notification settings - Fork 9
61 lines (52 loc) · 1.65 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: release
on:
push:
tags: ['v*']
jobs:
publish_to_npm:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v1
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- name: publish to npm (core)
if: startsWith( github.ref, 'refs/tags/v' )
working-directory: ./Packages/net.yutopp.vgltf
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
REF: ${{ github.ref }}
run: |
cp ../../README.md README.md
cp ../../LICENSE_1_0.txt LICENSE.txt
npm version "${REF#refs/tags/v}"
npm publish --access public
- name: publish to npm (unity)
if: startsWith( github.ref, 'refs/tags/v' )
working-directory: ./Packages/net.yutopp.vgltf.unity
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
REF: ${{ github.ref }}
run: |
cp ../../README.md README.md
cp ../../LICENSE_1_0.txt LICENSE.txt
npm version "${REF#refs/tags/v}"
npm publish --access public
publish_to_nuget:
runs-on: ubuntu-20.04
steps:
- name: setup env
run: sudo apt-get update -yy && sudo apt-get install -yy make git
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: publish to nuget (core)
if: startsWith( github.ref, 'refs/tags/v' )
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
REF: ${{ github.ref }}
run: |
export PROJECT_VERSION="${REF#refs/tags/v}"
make publish-to-nuget