-
-
Notifications
You must be signed in to change notification settings - Fork 11
37 lines (28 loc) · 986 Bytes
/
build-tarball.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
name: build-tarball
on:
release:
types: [ created, edited ]
jobs:
build-tarball:
runs-on: ubuntu-latest
strategy:
matrix:
branding: [ tf2pickup.pl, hl.tf2pickup.pl, tf2pickup.es ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
- name: Install dependencies
run: yarn install
- name: Build ${{ matrix.branding }}
run: yarn build:${{ matrix.branding }}
- name: Create ${{ matrix.branding }} tarball
run: tar -C dist/${{ matrix.branding }} -zcvf ${{ matrix.branding }}_client-${{ github.event.release.tag_name }}.tar.gz .
- name: Upload tarball
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ matrix.branding }}_client-${{ github.event.release.tag_name }}.tar.gz
tag: ${{ github.ref }}
overwrite: true