There was an error while loading. Please reload this page.
1 parent 8ea8e5f commit 8bd8f3aCopy full SHA for 8bd8f3a
1 file changed
.github/workflows/release.yaml
@@ -40,20 +40,10 @@ jobs:
40
- name: Build project
41
run: pnpm run build
42
43
- - name: Get tag name
44
- id: get_tag
45
- run: |
46
- if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
47
- echo "tag=${{ github.event.inputs.tag }}" >> $GITHUB_OUTPUT
48
- else
49
- echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
50
- fi
51
-
52
- name: Create Release
+ if: github.ref_type == 'tag'
53
uses: softprops/action-gh-release@v2
54
with:
55
- tag_name: ${{ steps.get_tag.outputs.tag }}
56
- name: Release ${{ steps.get_tag.outputs.tag }}
57
body: |
58
## Changes in this Release
59
@@ -64,7 +54,3 @@ jobs:
64
65
- `extension.tar` - ArgoCD extension package
66
files: ./dist/extension.tar
67
- draft: false
68
- prerelease: false
69
- env:
70
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments