-
-
Notifications
You must be signed in to change notification settings - Fork 1
executable file
·37 lines (35 loc) · 1.07 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
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