Skip to content

Commit

Permalink
临时打版
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rdfree committed Nov 26, 2024
1 parent 60f8514 commit 1001e5a
Showing 1 changed file with 53 additions and 46 deletions.
99 changes: 53 additions & 46 deletions .github/workflows/yakit-se.yml
Original file line number Diff line number Diff line change
Expand Up @@ -256,53 +256,60 @@ jobs:
path: ./release/EnpriTraceAgent-${{ steps.package_version.outputs.value }}-linux-legacy-arm64.AppImage
if-no-files-found: error

# publish_yakit_se_to_oss:
# if: ${{ startsWith(github.ref, 'refs/tags/v') }}
# needs:
# - build_yakit
# runs-on: ubuntu-latest
# steps:
# - name: Fetch Yakit SE Tag
# uses: mad9000/actions-find-and-replace-string@5
# id: fetch_tag_release
# with:
# source: ${{ github.ref }}
# find: "refs/tags/v"
# replace: ""
# - name: Generate Yakit SE Version
# uses: mad9000/actions-find-and-replace-string@5
# id: generate_version
# with:
# source: ${{ steps.fetch_tag_release.outputs.value }}
# find: "-se"
# replace: ""
publish_yakit_se_to_oss:
# if: ${{ startsWith(github.ref, 'refs/tags/v') }}
needs:
- build_yakit
runs-on: ubuntu-latest
steps:
- name: Fetch Yakit SE Tag
uses: mad9000/actions-find-and-replace-string@5
id: fetch_tag_release
with:
source: ${{ github.ref }}
find: "refs/tags/v"
replace: ""
- name: Generate Yakit SE Version
uses: mad9000/actions-find-and-replace-string@5
id: generate_ee_version
with:
source: ${{ steps.fetch_tag_release.outputs.value }}
find: "-ee"
replace: ""
- name: Generate Yakit SE Version
uses: mad9000/actions-find-and-replace-string@5
id: generate_version
with:
source: ${{ steps.generate_ee_version.outputs.value }}
find: "-ce"
replace: ""

# - name: Download SE Yakit And Legacy Yakit
# uses: actions/download-artifact@v4
# with:
# merge-multiple: true
- name: Download SE Yakit And Legacy Yakit
uses: actions/download-artifact@v4
with:
merge-multiple: true

# - run: ls
# name: Ls Published Artifacts...
- run: ls
name: Ls Published Artifacts...

# - name: Upload Yakit SE To OSS
# uses: tvrcgo/upload-to-oss@master
# with:
# key-id: ${{ secrets.OSS_KEY_ID }}
# key-secret: ${{ secrets.OSS_KEY_SECRET }}
# region: oss-accelerate
# bucket: yaklang
# assets: |
# *:/vip-se/${{ steps.generate_version.outputs.value }}/
- name: Upload Yakit SE To OSS
uses: tvrcgo/upload-to-oss@master
with:
key-id: ${{ secrets.OSS_KEY_ID }}
key-secret: ${{ secrets.OSS_KEY_SECRET }}
region: oss-accelerate
bucket: yaklang
assets: |
*:/vip-se/${{ steps.generate_version.outputs.value }}/
# - name: Update OSS latest file
# run: echo ${{ steps.generate_version.outputs.value }} > ./yakit-version.txt
# - name: Upload SE Yakit Version to oss
# uses: tvrcgo/upload-to-oss@master
# with:
# key-id: ${{ secrets.OSS_KEY_ID }}
# key-secret: ${{ secrets.OSS_KEY_SECRET }}
# region: oss-accelerate
# bucket: yaklang
# assets: |
# ./yakit-version.txt:/vip-se/latest/yakit-version.txt
- name: Update OSS latest file
run: echo ${{ steps.generate_version.outputs.value }} > ./yakit-version.txt
- name: Upload SE Yakit Version to oss
uses: tvrcgo/upload-to-oss@master
with:
key-id: ${{ secrets.OSS_KEY_ID }}
key-secret: ${{ secrets.OSS_KEY_SECRET }}
region: oss-accelerate
bucket: yaklang
assets: |
./yakit-version.txt:/vip-se/latest/yakit-version.txt

0 comments on commit 1001e5a

Please sign in to comment.