diff --git a/.github/workflows/build-package.yaml b/.github/workflows/build-package.yaml index 22516dc..c55110d 100644 --- a/.github/workflows/build-package.yaml +++ b/.github/workflows/build-package.yaml @@ -34,6 +34,15 @@ jobs: - name: run docker run: | docker run --rm -v ${{ github.workspace }}:/package -e GBP_REPO=${{ github.event.inputs.release_repo}} -e GBP_TAG=${{ github.event.inputs.release_tag}} lcas.lincoln.ac.uk/lcas/docker-dpkg-build:master ./run.sh + - uses: actions/upload-artifact@v3 + with: + name: debs + path: | + ${{ github.workspace }}/*.deb + ${{ github.workspace }}/*.ddeb + ${{ github.workspace }}/*.tar.?z + ${{ github.workspace }}/*.changes + - name: "upload to Aptly repo and make available at staging" run: | APTLY_API="https://lcas.lincoln.ac.uk/apt/api" @@ -42,6 +51,7 @@ jobs: files=`find ${{ github.workspace }}/ -name "*.deb" -o -name "*.ddeb" -o -name "*.udeb" -o -name "*.dsc" -o -name "*.tar.?z" -maxdepth 1` for f in $files; do echo "Uploading $f..." + ls -l $f curl -fsS -X POST -F "file=@$f" -u lcas:${{ secrets.APTLY_TOKEN }} $APTLY_API/files/$folder done echo "updating repo with files in $folder" @@ -50,12 +60,4 @@ jobs: curl -X PUT -H 'Content-Type: application/json' --data "{\"ForceOverwrite\": true, \"SourceKind\": \"local\", \"Sources\": [{\"Name\": \"$repo\"}]}" -u lcas:${{ secrets.APTLY_TOKEN }} $APTLY_API/publish/staging/jammy - - uses: actions/upload-artifact@v3 - with: - name: debs - path: | - ${{ github.workspace }}/*.deb - ${{ github.workspace }}/*.ddeb - ${{ github.workspace }}/*.tar.?z - ${{ github.workspace }}/*.changes - uses: AutoModality/action-clean@v1