From d2fd1d5e7e730b596862f4ee8b8c54e176fe70e5 Mon Sep 17 00:00:00 2001 From: Sven Sauleau Date: Mon, 4 May 2020 23:15:45 +0100 Subject: [PATCH] create release Action --- .github/workflows/main.yml | 71 +++++++++++++++++++++++++------------- 1 file changed, 47 insertions(+), 24 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f284baca..135e44fb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,27 +9,50 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - - name: make - run: make all - - - uses: actions/upload-artifact@v1 - with: - name: algolia - path: ./bin/algolia - - - uses: actions/upload-artifact@v1 - with: - name: autoupdate - path: ./bin/autoupdate - - - uses: actions/upload-artifact@v1 - with: - name: checker - path: ./bin/checker - - - uses: actions/upload-artifact@v1 - with: - name: packages - path: ./bin/packages + - uses: actions/checkout@v2 + + - name: make + run: make all + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: c${{ github.sha }} + release_name: Release ${{ github.sha }} + draft: false + prerelease: false + + - uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./bin/algolia + asset_name: algolia + + - uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./bin/autoupdate + asset_name: autoupdate + + - uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./bin/checker + asset_name: checker + + - uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./bin/packages + asset_name: packages