forked from Lonsofore/cod2docker
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 1.09 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
name: Create release
on:
push:
branches:
- master
jobs:
release:
name: Build and push docker image
uses: ./.github/workflows/build-push.yml
strategy:
matrix:
cod2_patch: [3]
mysql_variant: [1, 2]
enable_speex: [0, 1]
enable_unsafe: [0, 1]
with:
cod2_patch: ${{ matrix.cod2_patch }}
mysql_variant: ${{ matrix.mysql_variant }}
enable_speex: ${{ matrix.enable_speex }}
enable_unsafe: ${{ matrix.enable_unsafe }}
enable_push: true
secrets: inherit
tag-version:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Read version file
run: echo "VERSION=$(cat __version__)" >> $GITHUB_ENV
- name: Set up Git config
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
- name: Create and push tag
run: |
git tag -fa ${{ env.VERSION }} -m "Release ${{ env.VERSION }}"
git push origin --tags --force