-
-
Notifications
You must be signed in to change notification settings - Fork 4
68 lines (67 loc) · 2.07 KB
/
build-latest.yaml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Build latest app
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
name: Create executable archive
runs-on: ubuntu-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Dependencies
run: composer install --no-dev
- name: Download phar builder
run: wget https://github.com/clue/phar-composer/releases/download/v1.3.0/phar-composer-1.3.0.phar -O phar-composer.phar
- name: Create PHAR
run: php -d phar.readonly=off phar-composer.phar build . gog-downloader.phar
- name: Rename
run: mv gog-downloader.phar gog-downloader
- name: Create artifact
if: ${{ !env.ACT }}
uses: actions/upload-artifact@v4
with:
name: gog-downloader
path: gog-downloader
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: rikudousage
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
tags: rikudousage/gog-downloader:dev
push: true
setup:
name: Create Windows executable
runs-on: windows-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Dependencies
run: composer install --no-dev
- name: Create Windows setup
run: iscc setup.iss
- name: Create artifact
if: ${{ !env.ACT }}
uses: actions/upload-artifact@v4
with:
name: GogDownloaderSetup.exe
path: GogDownloaderSetup.exe