Skip to content

Commit

Permalink
add vendor.tar.xz
Browse files Browse the repository at this point in the history
Signed-off-by: jinqiang zhang <peeweep@0x0.ee>
  • Loading branch information
peeweep committed Feb 16, 2023
1 parent e218430 commit e88a790
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git tag --delete ${P} || echo yes
git tag ${P} -m "${P}-deps.tar.xz"
git tag ${P} -m "${P}-deps.tar.xz ${P}-vendor.tar.xz"
- name: Generate deps.tar.xz
env:
Expand All @@ -53,6 +53,9 @@ jobs:
cd input
GOMODCACHE="${PWD}"/go-mod go mod download -modcacherw
tar --create --auto-compress --file /tmp/${P}-deps.tar.xz go-mod
rm -rf go-mod
go mod vendor
tar --create --auto-compress --file /tmp/${P}-vendor.tar.xz vendor
- name: push tag
uses: ad-m/github-push-action@master
Expand All @@ -64,5 +67,7 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v1
with:
files: /tmp/${{ inputs.P }}-deps.tar.xz
files: |
/tmp/${{ inputs.P }}-deps.tar.xz
/tmp/${{ inputs.P }}-vendor.tar.xz
tag_name: ${{ inputs.P }}

0 comments on commit e88a790

Please sign in to comment.