Skip to content

Commit fb8bd6c

Browse files
authored
ci: fix upload path (#24)
Base became `~.svg/~.svg`. We expected `docs/~.svg`.
1 parent 33ad43f commit fb8bd6c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
paths-ignore:
66
- "README.md"
77
- "doc/*.txt"
8+
pull_request:
89

910
jobs:
1011
themis:
@@ -50,14 +51,14 @@ jobs:
5051
- uses: k1LoW/octocov-action@5213913fe329368ab9dafa16f18f4f3cce1062f0 # v1.3.0
5152
- name: create filename
5253
id: filename
53-
run: echo "filename=badge-${{ runner.os }}-$(test \"${{ matrix.neovim }}\" = \"true\" && echo neovim || echo vim )-${{ matrix.version }}.svg" >> "$GITHUB_OUTPUT"
54+
run: echo "filename=badge-${{ runner.os }}-$(test \"${{ matrix.neovim }}\" = \"true\" && echo neovim || echo vim )-${{ matrix.version }}" >> "$GITHUB_OUTPUT"
5455
- name: make covarage badge
5556
run: |
56-
octocov badge coverage --out ${{ github.workspace }}/${{ steps.filename.outputs.filename }}
57+
octocov badge coverage --out ${{ github.workspace }}/${{ steps.filename.outputs.filename }}.svg
5758
- name: upload badge to artifact
5859
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
5960
with:
60-
path: ${{ steps.filename.outputs.filename }}
61+
path: ${{ steps.filename.outputs.filename }}.svg
6162
name: ${{ steps.filename.outputs.filename }}
6263
if-no-files-found: error
6364

@@ -69,11 +70,12 @@ jobs:
6970
- name: download artifacts
7071
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
7172
with:
72-
pattern: "*.svg"
73+
pattern: "badge-*"
7374
- name: move them into docs
7475
run: |
76+
tree
7577
mkdir docs
76-
mv *.svg docs/
78+
mv **/*.svg docs/
7779
- name: upload badge to artifact
7880
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
7981
with:

0 commit comments

Comments
 (0)