forked from Scighost/Starward
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (34 loc) · 1.23 KB
/
convert_preview_to_stable.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Convert Preview to Stable
on:
workflow_dispatch:
permissions:
contents: write
jobs:
upload:
runs-on: ubuntu-latest
steps:
- name: Checkout Metadata
uses: actions/checkout@v4
with:
ref: metadata
- name: Copy Files
shell: pwsh
env:
V: v1
run: |
Copy-Item $env:V/release_preview_arm64.json $env:V/release_stable_arm64.json -Force
Copy-Item $env:V/release_preview_x64.json $env:V/release_stable_x64.json -Force
Copy-Item $env:V/version_preview_arm64.json $env:V/version_stable_arm64.json -Force
Copy-Item $env:V/version_preview_x64.json $env:V/version_stable_x64.json -Force
- name: Push Metadata
run: |
git config --global user.name '${{ github.actor }}'
git config --global user.email '${{ github.actor }}@users.noreply.github.com'
git commit -am "convert preview to stable"
git push
- name: Upload to OSS
run: |
rm -rf ./.git ./.github
curl https://gosspublic.alicdn.com/ossutil/install.sh | sudo bash
ossutil config -e ${{ secrets.OSS_ENDPOINT }} -i ${{ secrets.ACCESS_KEY_ID }} -k ${{ secrets.ACCESS_KEY_SECRET }}
ossutil cp -rf ./ oss://starward/metadata/