Skip to content

Commit

Permalink
Fix ci by using 'run' command instead of 'publish' 🧰 (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
panmona committed Mar 2, 2022
1 parent 8acf369 commit a9e8cc0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 14 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,7 @@ jobs:
with:
dotnet-version: '6.0.x'

- name: Install dependencies 📦
run: dotnet restore src

- name: Build project 🏗
run: dotnet build src -c Release --no-restore

- name: Test 🏭
run: dotnet run --project src/Tests

- name: Publish 🚀
- name: Restore, Build, Tests, Publish (on tag) 🚀
run: |
dotnet tool install --global dotnet-releaser --version "0.3.*"
dotnet-releaser publish --github-token ${{secrets.TOKEN_GITHUB}} src/dotnet-releaser.toml
dotnet-releaser run --github-token "${{secrets.GITHUB_TOKEN}}" --github-token-extra "${{secrets.TOKEN_GITHUB}}" src/dotnet-releaser.toml
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ OPTIONS:
--token, -t <token> Token to access the SwitchTube API. Generate a token at
https://tube.switch.ch/access_tokens
--path, -p <path> Paths to download videos to (defaults to current dir). The path must already exist.
--skip, -s Existing file handling option. Skip saving of already existing files. Prioritized if
--skip, -s Existing file handling option. Skip download of already existing files. Prioritized if
multiple existing file options are given
--force, -f Existing file handling option. Overwrite already existing files
--all, -a Filter option. Downloads all videos in a channel
Expand Down
2 changes: 1 addition & 1 deletion src/SwitchTubeDl/Cli/Cli.fs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type CliArgs =
| Token _ -> "Token to access the SwitchTube API. Generate a token at https://tube.switch.ch/access_tokens"
| Path _ -> "Paths to download videos to (defaults to current dir). The path must already exist."
| Skip ->
"Existing file handling option. Skip saving of already existing files. Prioritized if multiple existing file options are given"
"Existing file handling option. Skip download of already existing files. Prioritized if multiple existing file options are given"
| Force -> "Existing file handling option. Overwrite already existing files"
| All -> "Filter option. Downloads all videos in a channel"
| Version -> "Display the current version."
Expand Down
1 change: 1 addition & 0 deletions src/Tests/Tests.fsproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<IsPackable>false</IsPackable>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<RootNamespace>TubeDl.Tests</RootNamespace>
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet-releaser.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# configuration file for dotnet-releaser
[msbuild]
project = "SwitchTubeDl/SwitchTubeDl.fsproj"
project = "SwitchTubeDl.sln"
[github]
user = "panmau"
repo = "switchtube-dl"
Expand Down

0 comments on commit a9e8cc0

Please sign in to comment.