From 8eb38ddab640ab90902319a3058f328e56b24f29 Mon Sep 17 00:00:00 2001 From: Greg Albrecht Date: Mon, 24 Jun 2024 17:50:48 -0700 Subject: [PATCH] rewriting job --- .github/workflows/build_amd64.yml | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build_amd64.yml b/.github/workflows/build_amd64.yml index a390c7a530..0e521d85c3 100644 --- a/.github/workflows/build_amd64.yml +++ b/.github/workflows/build_amd64.yml @@ -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 @@ -22,11 +22,6 @@ 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 @@ -34,7 +29,7 @@ jobs: 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 @@ -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: @@ -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 \ No newline at end of file