small fix

This commit is contained in:
bipinkrish 2023-02-23 14:06:34 +05:30
parent e3b5f8fbe8
commit 078b7dbefe

View file

@ -3,49 +3,54 @@ name: Release
on: on:
workflow_dispatch: workflow_dispatch:
steps: jobs:
- uses: actions/checkout@v3 build_release:
- uses: actions/download-artifact@v3 name: build_release
- name: Display structure of downloaded files runs-on: ubuntu-latest
run: ls -R
- name: release steps:
uses: actions/create-release@v1 - uses: actions/checkout@v3
id: create_release - uses: actions/download-artifact@v3
with: - name: Display structure of downloaded files
draft: false run: ls -R
prerelease: false
release_name: Latest Release
tag_name: ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ github.token }}
- name: upload linux artifact - name: release
uses: actions/upload-release-asset@v1 uses: actions/create-release@v1
env: id: create_release
GITHUB_TOKEN: ${{ github.token }} with:
with: draft: false
upload_url: ${{ steps.create_release.outputs.upload_url }} prerelease: false
asset_path: .*.bin release_name: Latest Release
asset_name: DeGourou tag_name: ${{ github.ref }}
asset_content_type: application/gzip env:
GITHUB_TOKEN: ${{ github.token }}
# - 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 - name: upload linux artifact
uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1
env: env:
GITHUB_TOKEN: ${{ github.token }} GITHUB_TOKEN: ${{ github.token }}
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: .*.exe asset_path: .*.bin
asset_name: DeGourou.exe asset_name: DeGourou
asset_content_type: application/zip 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