Skip to content

update

update #32

Workflow file for this run

name: Build bot
on: [push, pull_request]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build
run: |
docker build -t hmailfilter .
docker run --rm -v $(pwd):/data hmailfilter /bin/cp /root/hmailclassifier /data
- uses: actions/upload-artifact@v1
with:
name: hmailclassifier
path: hmailclassifier
- name: Create Release
id: create_release
if: contains(github.ref, 'v')
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
if: contains(github.ref, 'v')
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: hmailclassifier
asset_name: hmailclassifier
asset_content_type: application/octet-stream