Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

Commit

Permalink
Test release yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ch3ck committed Dec 24, 2021
1 parent c46e732 commit d8b2bca
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
- uses: katyo/publish-crates@v1
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
path: ./pkg/download
publish-go-package-on-release:
name: Release go binaries
runs-on: ubuntu-latest
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ jobs:
run-security-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions-rs/audit-check@v1
with:
path: ./pkg/download
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,5 @@ dist/
# env files that usually contain secrets or local config
.env
.envrc

dist/
29 changes: 29 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
- make build-static
builds:
- env:
- CGO_ENABLED=0
goos:
- windows
- darwin
- linux
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
Binary file added main
Binary file not shown.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ func main() {
path := c.String("path")

// download files with go library
return downloadVideo(url, path)
// return downloadVideo(url, path)

// use rust library instead
// return rsDownloadVideo(url, path)
return rsDownloadVideo(url, path)
},
}
sort.Sort(cli.FlagsByName(app.Flags))
Expand Down
2 changes: 1 addition & 1 deletion pkg/download/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "ydl"
description = "download youtube videos to path"
version = "0.1.0"
version = "0.1.1"
authors = ["Nyah Check <hello@nyah.dev>"]
license = "MIT"
homepage = "https://github.com/ch3ck"
Expand Down

0 comments on commit d8b2bca

Please sign in to comment.