File tree 1 file changed +19
-1
lines changed
1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -25,17 +25,35 @@ jobs:
25
25
fi
26
26
done
27
27
echo "contains=false" >> "$GITHUB_OUTPUT"
28
+ prepare-assets :
29
+ runs-on : ubuntu-latest
30
+ steps :
31
+ - uses : actions/checkout@v4
32
+ - run : cargo package -l
33
+ - run : |
34
+ cargo package --no-verify -p traq-bot-http
35
+ mv target/package/*.crate traq-bot-http.crate
36
+ - uses : actions/upload-artifact@v4
37
+ with :
38
+ name : package
39
+ path : traq-bot-http.crate
28
40
create-release :
29
41
runs-on : ubuntu-latest
30
- needs : check-main-branch
42
+ needs :
43
+ - prepare-assets
44
+ - check-main-branch
31
45
if : needs.check-main-branch.outputs.contains == 'true'
32
46
steps :
33
47
- uses : actions/checkout@v4
48
+ - uses : actions/download-artifact@v4
49
+ with :
50
+ name : package
34
51
- uses : actions/setup-python@v5
35
52
with :
36
53
python-version : ' 3.10'
37
54
- run : |
38
55
release_note="$(cat CHANGELOG.md | python3 .github/workflows/filter-changelog.py '${{ github.ref_name }}')"
39
56
gh release create ${{ github.ref_name }} -d -t ${{ github.ref_name }} -n "$release_note"
57
+ gh release upload ${{ github.ref_name }} traq-bot-http.crate
40
58
env:
41
59
GH_TOKEN: ${{ secrets.PAT }}
You can’t perform that action at this time.
0 commit comments