Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Watfaq/PowerSession-rs
Browse files Browse the repository at this point in the history
  • Loading branch information
ibigbug committed Sep 10, 2022
2 parents e37cd14 + 4e8498d commit 18cf802
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 42 deletions.
55 changes: 47 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,61 @@
name: Rust CI
name: CI

on:
push:
branches: [ main ]
tags:
- 'v*'
branches:
- main
pull_request:
branches: [ main ]
branches:
- main

env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1

jobs:
build:
runs-on: windows-latest
env:
RUST_BACKTRACE: 1

steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --release
- name: Run tests
run: cargo test --verbose
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: PowerSession
path: target/release/PowerSession.exe

publish:
needs: build
runs-on: windows-latest
if: startsWith(github.ref, 'refs/tags/v')
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}

steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v1
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Publish to crates.io
run: cargo publish --verbose
- name: Get PowerSession artifact
uses: actions/download-artifact@v3
with:
name: PowerSession
path: target/release
- name: Release
uses: softprops/action-gh-release@v1
with:
files: .\target\release\PowerSession.exe
- name: Publish to WinGet
uses: vedantmgoyal2009/winget-releaser@latest
with:
identifier: Watfaq.PowerSession
release-tag: ${{ github.ref }}
token: ${{ secrets.WINGET_TOKEN }}
33 changes: 0 additions & 33 deletions .github/workflows/release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description = "Asciinema-compatible terminal session recorder for Windows"
readme = "README.md"
homepage = "https://github.com/Watfaq/PowerSession-rs"
repository = "https://github.com/Watfaq/PowerSession-rs"
keywords = ["cli", "powershell", "asciinema", "terminal", "recorder", "conpty", "powersession"]
keywords = ["cli", "asciinema", "terminal", "recorder", "conpty"]
categories = ["command-line-utilities"]

[dependencies]
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ A port of [asciinema](https://github.com/asciinema/asciinema) for Windows, based
cargo install PowerSession
```

### Winget

```console
winget install Watfaq.PowerSession
```

### Scoop

```console
Expand Down

0 comments on commit 18cf802

Please sign in to comment.