forked from civiform/civiform
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 850 Bytes
/
release.yaml
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
name: Create release
on:
workflow_dispatch:
inputs:
commit_sha:
description: 'The commit SHA on main for this release'
required: true
release_number:
description: 'The number for this release e.g. v1.2.3'
required: true
permissions:
contents: write
pull-requests: read
jobs:
create_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Run bin/create-release
run: 'GH_TOKEN=${{ secrets.GITHUB_TOKEN }} bin/create-release ${{ github.event.inputs.commit_sha }} ${{ github.event.inputs.release_number }}'