Skip to content

Commit 7b7d64b

Browse files
committed
Update github action script
1 parent 65d90de commit 7b7d64b

File tree

1 file changed

+29
-24
lines changed

1 file changed

+29
-24
lines changed

.github/workflows/blank.yml

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,35 @@ on:
77
workflow_dispatch:
88

99
jobs:
10-
build:
11-
runs-on: ubuntu-latest
10+
compile:
11+
name: Create deb package
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Check out the repo
15+
uses: actions/checkout@v2
16+
- name: Run the build process with Docker
17+
uses: addnab/docker-run-action@v3
18+
with:
19+
image: debian:stable
20+
options: -v ${{ github.workspace }}:/root -v /output:/output
21+
run: |
22+
set -ex
23+
cd /root
24+
apt update
25+
apt install devscripts equivs -y
26+
yes | mk-build-deps --install
27+
debuild -us -uc -b
28+
mkdir -p /output/
29+
mv ../*.deb /output/
30+
mv ./*.deb /output/
1231
13-
steps:
14-
- uses: actions/checkout@v2
32+
- uses: "marvinpinto/action-automatic-releases@latest"
33+
with:
34+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
35+
automatic_release_tag: "current"
36+
prerelease: false
37+
title: "Latest release"
38+
files: |
39+
/output/*
1540
16-
- name: Building deb package
17-
run: |
18-
sudo apt update
19-
sudo apt install devscripts equivs fuse libfuse2 -y
20-
sudo mk-build-deps --install
21-
sudo debuild -us -uc -b
22-
sudo mkdir -p /output/
23-
sudo mv ../*.deb /output/
24-
sudo mv ./*.deb /output/
25-
sudo QT_PATH="/usr/lib/x86_64-linux-gnu/qt5" bash appimage/create_appimage.sh
26-
sudo mv build/*.AppImage /output/
27-
28-
- uses: "marvinpinto/action-automatic-releases@latest"
29-
with:
30-
repo_token: "${{ secrets.GITHUB_TOKEN }}"
31-
automatic_release_tag: "current"
32-
prerelease: false
33-
title: "Latest release"
34-
files: |
35-
/output/*
3641

0 commit comments

Comments
 (0)