Skip to content

Commit 3bd1b62

Browse files
authored
Merge pull request #209 from EmixamPP/fix/ci
fix(CI/release): artifact not found
2 parents 269075a + fcc588a commit 3bd1b62

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
with:
128128
name: meson-logs
129129
path: |
130-
build/meson-logs/*
130+
build/meson-logs/*.txt
131131
132132
- name: Create tarball
133133
id: create-tarball
@@ -136,7 +136,7 @@ jobs:
136136
version=$(meson introspect --projectinfo build | jq -r '.version')
137137
echo "VERSION=$version" >> "$GITHUB_OUTPUT"
138138
139-
tarball_name=linux-enable-ir-emitter-${{ inputs.buildtype }}-${version}.systemd.x86-64.tar.gz
139+
tarball_name=linux-enable-ir-emitter-${version}-${{ inputs.buildtype }}.systemd.x86-64.tar.gz
140140
echo "TARBALL_NAME=$tarball_name" >> "$GITHUB_ENV"
141141
142142
DESTDIR=install_dir meson install -C build

.github/workflows/release.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
buildtype: release
1515

1616
release:
17+
name: Release
1718
runs-on: ubuntu-latest
1819
needs: build
1920
steps:
@@ -22,20 +23,15 @@ jobs:
2223
uses: actions/download-artifact@v4
2324

2425
- name: Create tag
25-
uses: actions/github-script@v5
26+
uses: rickstaa/action-create-tag@v1
2627
with:
27-
script: |
28-
github.rest.git.createRef({
29-
owner: context.repo.owner,
30-
repo: context.repo.repo,
31-
ref: 'refs/tags/${{ needs.build.outputs.version }}',
32-
sha: context.sha
33-
})
28+
tag: ${{ needs.build.outputs.version }}
29+
force_push_tag: true
3430

3531
- name: Create release
3632
uses: softprops/action-gh-release@v2
3733
with:
38-
files: linux-enable-ir-emitter*.tar.gz
34+
files: linux-enable-ir-emitter-*/*
3935
tag_name: ${{ needs.build.outputs.version }}
4036
fail_on_unmatched_files: true
4137
draft: ${{ github.event.inputs.draft }}

0 commit comments

Comments
 (0)