Skip to content

Commit

Permalink
Job for automatic native images uploading (scalameta#1711)
Browse files Browse the repository at this point in the history
  • Loading branch information
poslegm committed Jul 24, 2020
1 parent 3a27f27 commit 3ec586e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
tags:
- '*'
pull_request:
release:
types: [published]

jobs:
test:
Expand Down Expand Up @@ -78,10 +80,20 @@ jobs:
with:
name: ${{ matrix.artifact }}
path: scalafmt
- name: Upload release
if: github.event_name == 'release'
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: scalafmt
asset_name: ${{ matrix.artifact }}
asset_content_type: application/zip
dockerize:
needs: [native-image,test]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
if: startsWith(github.ref, 'refs/tags/v') && github.event_name != 'release'
steps:
- uses: actions/checkout@v2
- run: git fetch --unshallow
Expand Down

0 comments on commit 3ec586e

Please sign in to comment.