Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
peeweep committed Nov 12, 2024
1 parent 80b59b9 commit bad1438
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: "Generator"
on:
workflow_dispatch:
inputs:
# https://github.com/MetaCubeX/mihomo v1.18.10
# net-proxy/mihomo/mihomo-1.18.10.ebuild
# release artiface: ${PN}-${PV}-deps.tar.xz: mihomo-1.18.10-deps.tar.xz
# release tag: ${P}=${PN}-${PV}: mihomo-1.18.10
# https://github.com/XTLS/Xray-core v24.11.11
# net-proxy/Xray/Xray-24.11.11.ebuild
# release artiface: ${PN}-${PV}-deps.tar.xz: Xray-24.11.11-deps.tar.xz
# release tag: ${P}=${PN}-${PV}: Xray-24.11.11

LANG:
type: choice
Expand All @@ -16,23 +16,23 @@ on:
- javascript(pnpm)

REPO:
description: "github repo name: MetaCubeX/mihomo"
description: "github repo name: XTLS/Xray-core"
required: true

TAG:
description: "github tag: v1.18.10"
description: "github tag: v24.11.11"
required: true

P:
description: "P in ebuild: mihomo-1.18.10"
description: "P in ebuild: Xray-24.11.11"
required: true

WORKDIR:
description: "(optional)source directory to perform scripts, default to empty string"
default: ''

VENDORDIR:
description: "(optional)S in ebuild: mihomo-1.18.10, disabled default"
description: "(optional)S in ebuild: Xray-core-24.11.11, disabled default"
default: ''

jobs:
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
if [[ ! -f go.work && x"${VENDORDIR}" != x"" ]]; then
rm -rf go-mod
go mod vendor -modcacherw -o ${VENDORDIR}/vendor
tar --create --auto-compress --file /tmp/${VENDORDIR}-vendor.tar.xz ${VENDORDIR}/vendor
tar --create --auto-compress --file /tmp/${P}-vendor.tar.xz ${VENDORDIR}/vendor
fi
- name: Generate javascript node_modules
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
tag_name: ${{ inputs.P }}

- name: upload golang vendor to release artifaces
if: inputs.VENDORDIR != ''
if: inputs.LANG == 'golang' && inputs.VENDORDIR != ''
uses: softprops/action-gh-release@v2
with:
files: |
Expand Down

0 comments on commit bad1438

Please sign in to comment.