From 6b146707091e0798bbd4a8bb1cd5e654399f3b10 Mon Sep 17 00:00:00 2001 From: bipinkrish Date: Thu, 23 Feb 2023 14:01:40 +0530 Subject: [PATCH] Release workflow --- .github/workflows/release.yml | 49 +++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..0fe80e6 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,49 @@ +on: + workflow_dispatch: + +steps: + - uses: actions/checkout@v3 + - uses: actions/download-artifact@v3 + - name: Display structure of downloaded files + run: ls -R + + - 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 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