Skip to content

Commit

Permalink
Fix Packagecloud publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriansaliou committed Jul 7, 2022
1 parent e23c422 commit 69cd1df
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ jobs:
- name: Build packages
run: ./scripts/build_packages.sh

- name: Push packages to Packagecloud
uses: faucetsdn/action-packagecloud-upload-debian-packages@v1
with:
path: ./packages
repo: ${{ secrets.PACKAGECLOUD_REPO }}
token: ${{ secrets.PACKAGECLOUD_TOKEN }}

build-docker:
runs-on: ubuntu-latest

Expand Down
3 changes: 2 additions & 1 deletion scripts/build_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ function build_for_target {
release_result=$?

if [ $release_result -eq 0 ]; then
mv ./build/*$4 ./
mkdir -p "./packages/$2_$3/"
mv ./build/*$4 "./packages/$2_$3/"

echo "Result: Packaged architecture: $1 for OS: $2:$3 (*$4)"
fi
Expand Down

0 comments on commit 69cd1df

Please sign in to comment.