-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.16 KB
/
Copy pathrelease.yml
File metadata and controls
43 lines (38 loc) · 1.16 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
name: Upload Release Asset
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
container:
image: ghcr.io/autamus/go
options: --entrypoint /bin/bash
steps:
- name: Setup Environment
run: |
apt-get update
apt-get install -y git wget
wget https://github.com/github/hub/releases/download/v2.14.2/hub-linux-amd64-2.14.2.tgz
tar -xzvf hub-linux-amd64-2.14.2.tgz
./hub-linux-amd64-2.14.2/install
rm /opt/view/bin/git
- name: Checkout code
run : |
git clone https://github.com/arken/ark
- name: Build project
run: |
cd ark
chmod a+x .github/workflows/build.sh
./.github/workflows/build.sh ${{ secrets.CLIENT_ID }} ${GITHUB_REF##*/}
- name: Create Release
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd ark
chmod a+x .github/workflows/release.sh
./.github/workflows/release.sh