Release #57
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: | |
workflow_run: | |
workflows: ['CI'] | |
branches: [master] | |
types: | |
- completed | |
jobs: | |
semantic-release: | |
name: π¦π Semantic Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install Zip | |
run: sudo apt-get install zip | |
- name: Create library in compatible format for Arduino IDE | |
run: | | |
mkdir -p Bme280/src | |
mkdir -p Bme280/examples/TwoWire | |
mkdir -p Bme280/examples/FourWire | |
mkdir -p Bme280/examples/Settings | |
cp LICENSE Bme280 | |
cp library.properties Bme280 | |
cp src/* Bme280/src | |
cp examples/TwoWire/*.ino Bme280/examples/TwoWire | |
cp examples/FourWire/*.ino Bme280/examples/FourWire | |
cp examples/Settings/*.ino Bme280/examples/Settings | |
zip -r Bme280.zip Bme280/* | |
- name: Use Node.js | |
uses: actions/setup-node@v2 | |
- name: Run semantic-release | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
run: npx semantic-release || true |