-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.06 KB
/
publish.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
name: Tawa veröffentlichen
on:
workflow_dispatch:
push:
branches: [ haupt ]
pull_request:
branches: [ haupt ]
jobs:
build:
runs-on: ubuntu-latest
name: Tawa kompilieren
steps:
- name: Repository auschecken
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt update -yy
sudo apt install -yy --no-install-recommends upx
- name: Go herunterladen
uses: actions/setup-go@v2
with:
go-version: '^1.16.6'
- name: Tawa kompilieren
run: |
go build -ldflags="-s -w"
- name: Mit UPX packieren
run: |
upx Tawa
- name: Release hochladen
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
wget -q https://github.com/TheAssassin/pyuploadtool/releases/download/continuous/pyuploadtool-x86_64.AppImage
chmod +x pyuploadtool-x86_64.AppImage
./pyuploadtool-x86_64.AppImage Tawa