Skip to content

Release

Release #57

Workflow file for this run

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