Skip to content

Commit a3b5dc8

Browse files
committed
Add automatic release creation
1 parent 632d9e5 commit a3b5dc8

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,29 @@
11
name: GitHub Actions Runner in Docker - Release
22
on:
33
push:
4-
paths-ignore:
5-
- Dockerfile.base
6-
- README.md
74
tags:
85
- '*'
96

107
jobs:
8+
create-release:
9+
name: Create Release
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
- name: Create Release
15+
id: create_release
16+
uses: actions/create-release@v1
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
with:
20+
tag_name: ${{ github.ref }}
21+
release_name: Release ${{ github.ref }}
22+
draft: false
23+
prerelease: false
1124
ubuntu_latest_tag:
1225
runs-on: ubuntu-latest
26+
needs: create-release
1327
steps:
1428
- name: Copy Repo Files
1529
uses: actions/checkout@master
@@ -30,6 +44,7 @@ jobs:
3044
run: docker buildx build -f Dockerfile -t ${ORG}/github-runner:${TAG} --output "type=image,push=true" --platform linux/amd64,linux/arm/v7,linux/arm64 .
3145
ubuntu_bionic_tag:
3246
runs-on: ubuntu-latest
47+
needs: create-release
3348
steps:
3449
- name: Copy Repo Files
3550
uses: actions/checkout@master
@@ -52,6 +67,7 @@ jobs:
5267
run: docker buildx build -f Dockerfile.ubuntu-bionic -t ${ORG}/github-runner:${TAG}-ubuntu-bionic --output "type=image,push=true" --platform linux/amd64,linux/arm/v7,linux/arm64 .
5368
ubuntu_xenial_tag:
5469
runs-on: ubuntu-latest
70+
needs: create-release
5571
steps:
5672
- name: Copy Repo Files
5773
uses: actions/checkout@master

0 commit comments

Comments
 (0)