Update main.yml

main
Bipin 2023-02-23 14:20:09 +05:30 committed by GitHub
parent 26f50671b5
commit 7f342b7862
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 55 additions and 2 deletions

View File

@ -1,10 +1,11 @@
name: Executable Build name: Executable Build and Release
on: on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
build: build:
name: Build
strategy: strategy:
matrix: matrix:
os: [macos-latest, ubuntu-latest, windows-latest] os: [macos-latest, ubuntu-latest, windows-latest]
@ -42,3 +43,55 @@ jobs:
build/*.exe build/*.exe
build/*.bin build/*.bin
build/*.app/**/* build/*.app/**/*
release:
permissions: write-all
name: Release
runs-on: ubuntu-latest
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