Skip to content

AirMCU

AirMCU #65

Workflow file for this run

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}/