Skip to content

Commit

Permalink
WIP Test Bintray publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Mirić committed Oct 12, 2020
1 parent ecdf7b8 commit 9079ed7
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,14 +245,14 @@ jobs:
assets+=("-a" "$asset")
done
hub release create "${assets[@]}" -m "$VERSION" -m "$(cat ./release\ notes/${VERSION}.md)" "$VERSION"
# - name: Upload packages to Bintray
# run: |
# # Publishing deb
# curl --fail -H "X-GPG-PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}" -T "dist/k6-$VERSION-amd64.deb" \
# "https://${{ secrets.BINTRAY_USER }}:${{ secrets.BINTRAY_KEY }}@api.bintray.com/content/loadimpact/deb/k6/${VERSION#v}/k6-${VERSION}-amd64.deb;deb_distribution=stable;deb_component=main;deb_architecture=amd64;publish=1;override=1"
# # Publishing rpm
# curl --fail -H "X-GPG-PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}" -T "dist/k6-$VERSION-amd64.rpm" \
# "https://${{ secrets.BINTRAY_USER }}:${{ secrets.BINTRAY_KEY }}@api.bintray.com/content/loadimpact/rpm/k6/${VERSION#v}/k6-${VERSION}-amd64.rpm?publish=1&override=1"
- name: Upload packages to Bintray
run: |
# Publishing deb
curl --fail -H "X-GPG-PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}" -T "dist/k6-$VERSION-amd64.deb" \
"https://${{ secrets.BINTRAY_USER }}:${{ secrets.BINTRAY_KEY }}@api.bintray.com/content/imiric2/deb/k6/${VERSION#v}/k6-${VERSION}-amd64.deb;deb_distribution=stable;deb_component=main;deb_architecture=amd64;publish=1;override=1"
# Publishing rpm
curl --fail -H "X-GPG-PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}" -T "dist/k6-$VERSION-amd64.rpm" \
"https://${{ secrets.BINTRAY_USER }}:${{ secrets.BINTRAY_KEY }}@api.bintray.com/content/imiric2/rpm/k6/${VERSION#v}/k6-${VERSION}-amd64.rpm?publish=1&override=1"
publish-windows:
runs-on: windows-latest
Expand Down Expand Up @@ -301,21 +301,21 @@ jobs:
uses: crazy-max/ghaction-chocolatey@b6061d587628735be315d74358228b83a7dba9a7
with:
args: pack --verbose --outputdirectory .\packaging .\packaging\k6.portable.nuspec
# - name: Upload packages to Bintray
# run: |
# cd .\packaging
# $env:VERSION = $env:VERSION.TrimStart("v", " ")
# curl --fail -H "X-GPG-PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}" -T .\k6.msi "https://${{ secrets.BINTRAY_USER }}:${{ secrets.BINTRAY_KEY }}@api.bintray.com/content/loadimpact/windows/k6/$env:VERSION/k6-v$env:VERSION-amd64.msi?publish=1&override=1"
# curl --fail -H "X-GPG-PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}" -T .\k6.portable.$env:VERSION.nupkg "https://${{ secrets.BINTRAY_USER }}:${{ secrets.BINTRAY_KEY }}@api.bintray.com/content/loadimpact/choco/k6.portable/$env:VERSION/k6.portable.$env:VERSION.nupkg?publish=1&override=1"'
- name: Upload packages to Bintray
run: |
cd .\packaging
$env:VERSION = $env:VERSION.TrimStart("v", " ")
curl --fail -H "X-GPG-PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}" -T .\k6.msi "https://${{ secrets.BINTRAY_USER }}:${{ secrets.BINTRAY_KEY }}@api.bintray.com/content/imiric2/windows/k6/$env:VERSION/k6-v$env:VERSION-amd64.msi?publish=1&override=1"
curl --fail -H "X-GPG-PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}" -T .\k6.portable.$env:VERSION.nupkg "https://${{ secrets.BINTRAY_USER }}:${{ secrets.BINTRAY_KEY }}@api.bintray.com/content/imiric2/choco/k6.portable/$env:VERSION/k6.portable.$env:VERSION.nupkg?publish=1&override=1"'
#publish-macos:
# runs-on: macos-latest
# needs: [deps, lint, test, test-cov, configure, build]
# if: startsWith(github.ref, 'refs/tags/v')
# env:
# VERSION: ${{ needs.configure.outputs.version }}
# steps:
# - name: Set up Homebrew
# uses: Homebrew/actions/setup-homebrew@cd7c1eba155dc11d77aa3e3e4013836ad96a6894
# - name: Create version bump PR
# run: brew bump-formula-pr k6 --tag="$VERSION" --revision="$GITHUB_SHA"
# publish-macos:
# runs-on: macos-latest
# needs: [deps, lint, test, test-cov, configure, build]
# if: startsWith(github.ref, 'refs/tags/v')
# env:
# VERSION: ${{ needs.configure.outputs.version }}
# steps:
# - name: Set up Homebrew
# uses: Homebrew/actions/setup-homebrew@cd7c1eba155dc11d77aa3e3e4013836ad96a6894
# - name: Create version bump PR
# run: brew bump-formula-pr k6 --tag="$VERSION" --revision="$GITHUB_SHA"

0 comments on commit 9079ed7

Please sign in to comment.