Skip to content

Dockerfile: make youtube-dl available under multiple names #96

Dockerfile: make youtube-dl available under multiple names

Dockerfile: make youtube-dl available under multiple names #96

Workflow file for this run

name: Build project
on:
push:
branches: [ master ]
jobs:
build:
name: Build
runs-on: ubuntu-18.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.16
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Download tags which the git command needs later
run: git fetch --prune --unshallow
- name: Runnning build/generation script
shell: bash
run: |
bash ./release.sh
- name: Generate tag name
run: echo "TAG_NAME=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Generate release title
run: echo "RTITLE=$(git log -n 1 --oneline | cut -d' ' -f2- -)" >> $GITHUB_ENV
- name: Upload release
uses: softprops/action-gh-release@v1
with:
files: releases/*.zip
tag_name: ${{ env.TAG_NAME }}
name: ${{ env.RTITLE }}
fail_on_unmatched_files: true
body_path: release.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Delete older releases
uses: dev-drprasad/[email protected]
with:
keep_latest: 7
delete_tags: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}