-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (34 loc) · 1.02 KB
/
release.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
name: release
on:
push:
repository_dispatch:
types: [AirMCU,AirISP]
workflow_dispatch:
jobs:
run-script:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- run: pip install -r requirements.txt
- run: python main.py
- uses: ncipollo/release-action@v1
with:
artifacts: "package_air_index.json,package_air_cn_index.json"
tag: "Nightly"
allowUpdates: true
- name: publish OSS
env:
OSS_CONFIG: ${{ secrets.OSS_CONFIG }}
OSS_NAME: ${{ secrets.OSS_NAME }}
run: |
sudo apt update
wget http://gosspublic.alicdn.com/ossutil/1.7.1/ossutil64
sudo chmod 755 ossutil64
echo -e "${OSS_CONFIG}" > ~/.ossutilconfig
./ossutil64 cp -u -r temp/ oss://${OSS_NAME}/
./ossutil64 cp -u package_air_cn_index.json oss://${OSS_NAME}/