Skip to content

Commit

Permalink
Publish releases and nightly builds from ci
Browse files Browse the repository at this point in the history
  • Loading branch information
randombenj committed Apr 4, 2022
1 parent c1e577c commit 47bda05
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,22 @@ jobs:
run: |
make release
- name: Publish nightly release to aptly
if: github.ref == 'refs/heads/master'
env:
APTLY_USER: ${{ secrets.APTLY_USER }}
APTLY_PASSWORD: ${{ secrets.APTLY_PASSWORD }}
run: |
bash upload-artefacts.sh nightly
- name: Publish release to aptly
if: startsWith(github.event.ref, 'refs/tags')
env:
APTLY_USER: ${{ secrets.APTLY_USER }}
APTLY_PASSWORD: ${{ secrets.APTLY_PASSWORD }}
run: |
bash upload-artefacts.sh release
- name: Upload artifacts to GitHub Release
if: startsWith(github.event.ref, 'refs/tags')
uses: softprops/action-gh-release@v1
Expand Down
2 changes: 1 addition & 1 deletion upload-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages=${builds}*.deb
folder=`mktemp -u tmp.XXXXXXXXXXXXXXX`
aptly_user="$APTLY_USER"
aptly_password="$APTLY_PASSWORD"
aptly_api="https://internal.aptly.info"
aptly_api="https://aptly-ops.aptly.info"
version=`make version`

for file in $packages; do
Expand Down

0 comments on commit 47bda05

Please sign in to comment.