修复一些Air401的编译报错 (#91) #40
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
push: | |
tags: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
path: source | |
submodules: true | |
- name: Remove git information from destination repository | |
run: | | |
mkdir dest.git | |
cp -r source/* dest.git/ | |
cd dest.git | |
rm -rf .git | |
- name: Zip folder and save | |
run: | | |
mkdir -p Arduino-AirMCU | |
cp -r dest.git/* Arduino-AirMCU/ | |
zip -r AirMCU-${GITHUB_REF#refs/tags/}.zip Arduino-AirMCU | |
- uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "*.zip" | |
allowUpdates: true | |
- name: Send repository_dispatch event to package json | |
run: | | |
curl -X POST https://api.github.com/repos/Air-duino/Arduino-pack-json-ci/dispatches \ | |
-H 'Accept: application/vnd.github.everest-preview+json' \ | |
-u ${{ secrets.USER_TOKEN }} \ | |
--data '{"event_type": "AirMCU"}' |