Skip to content

Commit 4853ae3

Browse files
committed
ci: fix publishing to marketplace (hopefully)
1 parent 741f179 commit 4853ae3

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/publish-marketplace.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,24 @@ on:
55
types: [published]
66

77
jobs:
8+
build:
9+
uses: ./.github/workflows/build.yml
10+
with:
11+
version-number: ${{ github.event.release.tag_name }}
12+
813
publish:
914
if: github.event.release.draft == false
1015
runs-on: ubuntu-latest
16+
needs: build
1117
steps:
1218
- name: Checkout code
1319
uses: actions/checkout@v4
1420

1521
- name: Extract version from tag
1622
id: version
17-
run: echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
18-
19-
- name: Build
20-
uses: ./.github/workflows/build.yml
21-
with:
22-
version-number: ${{ steps.version.outputs.version }}
23+
run: |
24+
TAG="${{ github.event.release.tag_name }}"
25+
echo "version=${TAG#v}" >> $GITHUB_OUTPUT
2326
2427
- name: Download build artifact
2528
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)