Skip to content

Release

Release #9

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: dlang-community/setup-dlang@v1
name: Install LDC
with:
compiler: ldc-latest
- name: Build release
run: dub build -b release --compiler=ldc2
- name: Create release
uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: New release of youtube-d ${{ github.ref_name }}
draft: false
prerelease: false
body_path: CHANGELOG.md
- name: Upload release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./youtube-d
asset_name: youtube-d-${{ github.ref_name }}
asset_content_type: application/octet-stream