Skip to content

release

release #7

Workflow file for this run

name: release
on:
push:
tags:
- 'v[0-9]+.*'
jobs:
create_release:
name: Create release
runs-on: ubuntu-latest
permissions:
write-all
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- name: Create release
id: create_release
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
build:
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- os: ubuntu-latest
- os: macos-latest
- os: windows-latest
steps:
- name: checkout repo
uses: actions/checkout@master
- name: build application
run: make
- name: Upload release assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
# This is how it will be named on the release page. Put hatever name
# you like, remember that they need to be different for each platform.
# You can choose any build matrix parameters. For Rust I use the
# target triple.
asset_name: hideur_maikeur-${{ matrix.config.os }}
# The path to the file you want to upload.
asset_path: ./hideur
# probably you will need to change it, but most likely you are
# uploading a binary file
asset_content_type: application/octet-stream