Skip to content

Commit c16c431

Browse files
committed
.
1 parent 4e58a93 commit c16c431

File tree

4 files changed

+2351
-1
lines changed

4 files changed

+2351
-1
lines changed

.github/workflows/main.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,34 @@ jobs:
1212
if: startsWith(github.ref, 'refs/tags/v')
1313
env:
1414
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
15+
- run: npm ci && npm run pkg
16+
- uses: actions/create-release@v1
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
with:
20+
tag_name: ${{ github.ref }}
21+
release_name: Release ${{ github.ref }}
22+
- uses: actions/upload-release-asset@v1
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
with:
26+
upload_url: ${{ steps.create_release.outputs.upload_url }}
27+
asset_path: ./pkg/obs-cli-macos
28+
asset_name: obs-cli-macos
29+
asset_content_type: application/octet-stream
30+
- uses: actions/upload-release-asset@v1
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
with:
34+
upload_url: ${{ steps.create_release.outputs.upload_url }}
35+
asset_path: ./pkg/obs-cli-linux
36+
asset_name: obs-cli-linux
37+
asset_content_type: application/octet-stream
38+
- uses: actions/upload-release-asset@v1
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
with:
42+
upload_url: ${{ steps.create_release.outputs.upload_url }}
43+
asset_path: ./pkg/obs-cli-win.exe
44+
asset_name: obs-cli-win.exe
45+
asset_content_type: application/vnd.microsoft.portable-executable

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/node_modules/
2+
/pkg/

0 commit comments

Comments
 (0)