degourou/.github/workflows/release.yml

57 lines
1.6 KiB
YAML
Raw Normal View History

2023-02-23 03:34:14 -05:00
name: Release
2023-02-23 03:31:40 -05:00
on:
workflow_dispatch:
2023-02-23 03:36:34 -05:00
jobs:
build_release:
2023-02-23 03:38:21 -05:00
permissions: write-all
2023-02-23 03:36:34 -05:00
name: build_release
runs-on: ubuntu-latest
2023-02-23 03:31:40 -05:00
2023-02-23 03:36:34 -05:00
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- name: Display structure of downloaded files
run: ls -R
2023-02-23 03:31:40 -05:00
2023-02-23 03:36:34 -05:00
- 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 }}
2023-02-23 03:31:40 -05:00
2023-02-23 03:36:34 -05:00
- 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