-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (56 loc) · 2.08 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# This is a basic workflow to help you get started with Actions
name: Release
# Controls when the action will run.
on:
release:
types: [published]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
release:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Download deps
run: |
go install github.com/mitchellh/gox
- name: build
run: |
./scripts/dist.sh
- name: Upload release assets
uses: softprops/action-gh-release@v1
with:
files: build/sweetcher*.*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: compute next version
uses: PssbleTrngle/[email protected]
id: version
with:
token: ${{secrets.GITHUB_TOKEN}}
default-fragment: "bug"
- name: update sonar config file
run: sed -i -e "s/^sonar.projectVersion=.*$/sonar.projectVersion=${{ steps.version.outputs.next }}/" sonar-project.properties
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
commit-message: Update sonar config
committer: GitHub Actions <[email protected]>
author: GitHub Actions <[email protected]>
branch: post-release-sonar-config-update-${{ steps.version.outputs.next }}
delete-branch: true
base: master
title: '[Release] Update Sonar config version to ${{ steps.version.outputs.next }}'
body: |
Update Sonar config version to ${{ steps.version.outputs.next }}
labels: |
release/automated_pr
assignees: loicalbertin
reviewers: loicalbertin