Skip to content

Commit

Permalink
rewriting job
Browse files Browse the repository at this point in the history
  • Loading branch information
ampledata committed Jun 25, 2024
1 parent ff70ccf commit 8eb38dd
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/build_amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ on:
- '*'

jobs:
linux-amd64:
build-artifact:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v4

- uses: actions/checkout@master
- name: Install dependencies
run: sudo apt install -y aha git make gcc g++ cmake pkg-config librtlsdr-dev whiptail libpq-dev build-essential

Expand All @@ -22,19 +22,14 @@ jobs:
cmake ..
make
- name: Download all workflow run artifacts
uses: actions/download-artifact@v4
with:
name: "AIS-catcher_linux-amd64"

- name: Create package structure
run: |
mkdir -p .debpkg/usr/local/bin
mkdir -p .debpkg/usr/share/aiscatcher/my-plugins
cp build/AIS-catcher .debpkg/usr/local/bin/
cp plugins/* .debpkg/usr/share/aiscatcher/my-plugins/
chmod +x .debpkg/usr/local/bin/AIS-catcher
# create DEBIAN directory if you want to add other pre/post scripts
mkdir -p .debpkg/DEBIAN
cp debian/service .debpkg/DEBIAN
Expand All @@ -51,13 +46,13 @@ jobs:
arch: 'amd64'
desc: 'A multi-platform AIS Receiver'

- uses: actions/upload-artifact@v4
- name: Upload Artifacts to GitHub
uses: actions/upload-artifact@master
with:
name: artifact-deb
path: |
*.deb
path: ./*.deb

- name: Create Release
- name: Create GitHub Release
id: create_release
uses: actions/create-release@master
env:
Expand All @@ -68,13 +63,12 @@ jobs:
draft: false
prerelease: false

- name: Upload Release Asset
- name: Upload Release Asset to GitHub
id: upload-release-asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: |
*.deb
file: ./*.deb
tag: ${{ github.ref }}
overwrite: true
file_glob: true

0 comments on commit 8eb38dd

Please sign in to comment.