forked from CentraleNantesRobotics/ping360_sonar
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (40 loc) · 1.23 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Release
on:
push:
tags:
- '*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Extract tag name
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF:10}
- name: Echo version
run: echo ${{ env.RELEASE_VERSION }}
- name: Bump package version
run: |
python3 helper/bump.py ${{ env.RELEASE_VERSION }}
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m "Bump package version" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master
- name: Prepare release
run: |
python3 helper/clean.py
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m "Auto-remove roslint" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: release