Skip to content

Commit

Permalink
测试 ce 的 ci
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rdfree committed Aug 22, 2024
1 parent 7fe604f commit 4f9281f
Showing 1 changed file with 39 additions and 19 deletions.
58 changes: 39 additions & 19 deletions .github/workflows/yakit-ce..yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,24 +241,44 @@ jobs:
- run: ls
name: Ls Published Artifacts...

- name: Upload Yakit 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: |
*:/yak/${{ steps.fetchtag_release.outputs.value }}/
# - name: Create Release
# id: create_release
# uses: actions/create-release@v1
# continue-on-error: true
# env:
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# with:
# tag_name: ${{ github.ref }}
# release_name: Release ${{ github.ref }}
# draft: false
# prerelease: false

- name: Update OSS latest file
run: echo ${{ steps.fetchtag_release.outputs.value }} > ./yakit-version.txt
- name: Upload Yakit Version to oss
uses: tvrcgo/upload-to-oss@master
- name: Create Release and Upload Assets
uses: ncipollo/release-action@v1
with:
key-id: ${{ secrets.OSS_KEY_ID }}
key-secret: ${{ secrets.OSS_KEY_SECRET }}
region: oss-accelerate
bucket: yaklang
assets: |
./yakit-version.txt:/yak/latest/yakit-version.txt
artifacts: ./*
token: ${{ secrets.GITHUB_TOKEN }}
name: Release ${{ github.ref }}
tag: ${{ github.ref }}

# - name: Upload Yakit 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: |
# *:/yak/${{ steps.fetchtag_release.outputs.value }}/

# - name: Update OSS latest file
# run: echo ${{ steps.fetchtag_release.outputs.value }} > ./yakit-version.txt
# - name: Upload 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:/yak/latest/yakit-version.txt

0 comments on commit 4f9281f

Please sign in to comment.