From 078b7dbefe4ce2277fc3b1ef49a3872fac33a3e4 Mon Sep 17 00:00:00 2001 From: bipinkrish Date: Thu, 23 Feb 2023 14:06:34 +0530 Subject: [PATCH] small fix --- .github/workflows/release.yml | 91 ++++++++++++++++++----------------- 1 file changed, 48 insertions(+), 43 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b40e43d..ab482ae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,49 +3,54 @@ name: Release on: workflow_dispatch: -steps: - - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 - - name: Display structure of downloaded files - run: ls -R +jobs: + build_release: + name: build_release + runs-on: ubuntu-latest - - name: release - uses: actions/create-release@v1 - id: create_release - with: - draft: false - prerelease: false - release_name: Latest Release - tag_name: ${{ github.ref }} - env: - GITHUB_TOKEN: ${{ github.token }} + steps: + - uses: actions/checkout@v3 + - uses: actions/download-artifact@v3 + - name: Display structure of downloaded files + run: ls -R - - name: upload linux artifact - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ github.token }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: .*.bin - asset_name: DeGourou - asset_content_type: application/gzip - - # - name: upload darwin artifact - # uses: actions/upload-release-asset@v1 - # env: - # GITHUB_TOKEN: ${{ github.token }} - # with: - # upload_url: ${{ steps.create_release.outputs.upload_url }} - # asset_path: ./bin/azblogfilter.darwin-amd64.tar.gz - # asset_name: azblogfilter.darwin-amd64.tar.gz - # asset_content_type: application/gzip + - name: release + uses: actions/create-release@v1 + id: create_release + with: + draft: false + prerelease: false + release_name: Latest Release + tag_name: ${{ github.ref }} + env: + GITHUB_TOKEN: ${{ github.token }} - - name: upload windows artifact - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ github.token }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: .*.exe - asset_name: DeGourou.exe - asset_content_type: application/zip \ No newline at end of file + - name: upload linux artifact + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ github.token }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: .*.bin + asset_name: DeGourou + asset_content_type: application/gzip + + # - name: upload darwin artifact + # uses: actions/upload-release-asset@v1 + # env: + # GITHUB_TOKEN: ${{ github.token }} + # with: + # upload_url: ${{ steps.create_release.outputs.upload_url }} + # asset_path: ./bin/azblogfilter.darwin-amd64.tar.gz + # asset_name: azblogfilter.darwin-amd64.tar.gz + # asset_content_type: application/gzip + + - name: upload windows artifact + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ github.token }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: .*.exe + asset_name: DeGourou.exe + asset_content_type: application/zip \ No newline at end of file