-
Notifications
You must be signed in to change notification settings - Fork 0
96 lines (84 loc) · 2.66 KB
/
CD.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: CD
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
env:
UPLOAD_BUILD: true
# jobs:
# test:
# runs-on: ubuntu-latest
# if: github.repository == 'OS-Q/ArduinoCore'
# strategy:
# fail-fast: true
# matrix:
# python: [3.7]
# examples:
# - "tests/blink"
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# submodules: "recursive"
# fetch-depth: 1
# - name: Python ${{ matrix.python }}
# uses: actions/setup-python@v1
# with:
# python: ${{ matrix.python }}
# - name: Install
# run: |
# python -m pip install --upgrade pip
# pip install -U https://github.com/OS-Q/S03/archive/master.zip
# qio platform install https://github.com/OS-Q/P21.git
# - name: Build
# run: |
# qio run -d ${{ matrix.examples }}
# release:
# needs:
# - test
# if: success() && startsWith(github.ref, 'refs/tags/')
# runs-on: ubuntu-latest
# steps:
# - name: Get source
# uses: actions/checkout@v2
# with:
# submodules: "recursive"
# fetch-depth: 1
# - name: Get version
# if: startsWith(github.ref, 'refs/tags/')
# id: get_version
# run: |
# echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
# - name: Package
# if: success() && startsWith(github.ref, 'refs/tags/')
# run: |
# echo ${{ github.repository }} >> CHANGELOG.txt
# echo ${{ steps.get_version.outputs.VERSION }} >> CHANGELOG.txt
# echo ${{ github.sha }} >> CHANGELOG.txt
# echo $(date) >> CHANGELOG.txt
# tar -cjf A21A.tar.bz2 cores libraries variants system *.txt *.json
# - name: Release
# uses: stopstopstop/release-action@master
# if: startsWith(github.ref, 'refs/tags/')
# with:
# files: |
# CHANGELOG.txt
# A21A.tar.bz2
# env:
# GITHUB_TOKEN: ${{ secrets.OSQ_REPO_TOKEN }}
# - name: Notification
# uses: stopstopstop/mail-action@master
# with:
# server_address: smtp.gmail.com
# server_port: 465
# username: ${{secrets.MAIL_USERNAME}}
# password: ${{secrets.MAIL_PASSWORD}}
# subject: A21A Release
# body: file://CHANGELOG.txt
# to: ${{secrets.MAIL_TO}}
# from: Qitas
# cc: ${{secrets.MAIL_CC}},${{github.event.pusher.email}}
# bcc: ${{secrets.MAIL_BCC}}
# content_type: text/html
# convert_markdown: true
# attachments: package.json