install python with apt-get #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Download & Release Youtube Playlists | ||
on: | ||
push: | ||
tags: | ||
- "*.*.*" | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go 1.x | ||
uses: actions/checkout@v4 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '>=1.17.0' | ||
- name: Install PIGZ | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install pigz -y | ||
- name: Install FFMEG | ||
run: | | ||
sudo apt-get install ffmpeg -y | ||
- name: Install FFMEG | ||
run: | | ||
sudo apt-get install python3 | ||
- name: Get youtube-dl | ||
run: | | ||
sudo pip3 install --upgrade --force-reinstall "git+https://github.com/ytdl-org/youtube-dl.git" | ||
- name: Go Build | ||
run: go build -o main -v . | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
body_path: ./resource/playlist-list.csv | ||
release_name: New Youtube Playlist ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
- name: Go Run | ||
run: | | ||
./main | ||
- name: Upload Release Assets | ||
uses: shogo82148/actions-upload-release-asset@v1 | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./*.tar.gz | ||
- name: Commit Removed Lines From List Of Playlist | ||
uses: EndBug/add-and-commit@v5 | ||
with: | ||
author_name: AutoBot | ||
author_email: hi@mrturkmen.com | ||
message: "[automated msg]: playlist doc updated with new release" | ||
branch: master | ||
add: "resource/*.csv" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |