revert c87ad25d4d
All checks were successful
CI / test (push) Successful in 28s
All checks were successful
CI / test (push) Successful in 28s
revert Remove the step requiring `zip`
This commit is contained in:
@@ -73,6 +73,14 @@ jobs:
|
||||
git tag -a "$TAG" -m "Release $TAG"
|
||||
git push origin "refs/tags/$TAG"
|
||||
|
||||
- name: Package artifacts
|
||||
env:
|
||||
TAG: ${{ inputs.tag }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
( cd dist && zip -j "../jekyll-publish-$TAG.zip" main.js manifest.json styles.css )
|
||||
ls -la dist jekyll-publish-*.zip
|
||||
|
||||
- name: Publish Gitea release
|
||||
env:
|
||||
TAG: ${{ inputs.tag }}
|
||||
@@ -89,7 +97,7 @@ jobs:
|
||||
-d "$payload")
|
||||
id=$(echo "$release" | jq -r '.id')
|
||||
echo "Created release id=$id"
|
||||
for f in dist/main.js dist/manifest.json dist/styles.css; do
|
||||
for f in dist/main.js dist/manifest.json dist/styles.css "jekyll-publish-$TAG.zip"; do
|
||||
name=$(basename "$f")
|
||||
echo "Uploading $name"
|
||||
curl -sf -X POST "$API/releases/$id/assets?name=$name" \
|
||||
|
||||
Reference in New Issue
Block a user