-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (53 loc) · 2.05 KB
/
release.yml
File metadata and controls
56 lines (53 loc) · 2.05 KB
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
name: Release
on:
workflow_dispatch:
inputs:
version:
description: Version
required: true
permissions:
contents: write
pull-requests: write
jobs:
build:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
-
name: Composer cache
uses: actions/cache@v5
with:
path: vendor
key: composer-${{ hashFiles('composer.json') }}
restore-keys: composer-${{ hashFiles('composer.json') }}
- run: bin/release/env
- run: bin/release/prepare "${{ github.event.inputs.version }}"
-
id: create-pull-request
name: Create pull request
uses: peter-evans/create-pull-request@v8
with:
title: Release ${{ github.event.inputs.version }}
commit-message: Release ${{ github.event.inputs.version }}
base: master
branch: release-${{ github.event.inputs.version }}
labels: Release
delete-branch: true
-
name: Merge pull request
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr merge ${{ steps.create-pull-request.outputs.pull-request-number }} --rebase --delete-branch --admin
-
name: Create release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.inputs.version }}
body: "[Changelog](changelog.md)"
-
name: Build and push Docker image parallel-processes-${{ github.event.inputs.version }}
uses: ./.github/actions/build-docker-image-parallel-processes
with:
version: ${{ github.event.inputs.version }}
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}