Skip to content

Commit

Permalink
chore: setup github action
Browse files Browse the repository at this point in the history
  • Loading branch information
votrungquan1999 committed Jul 3, 2024
1 parent 735c87c commit d476615
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Release

on:
release:
types: [published]
workflow_dispatch:
inputs:
tag:
description: 'Tag to release'
required: true

jobs:
build:
Expand All @@ -18,14 +20,11 @@ jobs:
run: ./scripts/build-cli.sh

- name: upload built file
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: ncipollo/release-action@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/packages/jerni/src/mycli
asset_name: test-cli
asset_content_type: application/octet-stream
tag: ${{ github.event.inputs.tag }}
name: ${{ github.event.inputs.tag }}
artifacts: ./build/packages/jerni/src/mycli



Expand Down

0 comments on commit d476615

Please sign in to comment.