-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clicking
c
opens comments page on HN. (#4)
* Clicking `c` opens comments page on HN. * Refine workflows, Add CD workflow
- Loading branch information
Showing
7 changed files
with
73 additions
and
27 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Continuous Deployment | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
|
||
jobs: | ||
publish: | ||
name: Publishing for ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest] | ||
rust: [nightly] | ||
include: | ||
- os: macos-latest | ||
artifact_prefix: macos | ||
target: x86_64-apple-darwin | ||
- os: ubuntu-latest | ||
artifact_prefix: linux | ||
target: x86_64-unknown-linux-gnu | ||
|
||
steps: | ||
- name: Installing Rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
override: true | ||
- name: Installing needed macOS dependencies | ||
if: matrix.os == 'macos-latest' | ||
run: brew install [email protected] | ||
- name: Installing needed Ubuntu dependencies | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y -qq pkg-config libssl-dev | ||
- name: Checking out sources | ||
uses: actions/checkout@v1 | ||
- name: Running cargo build | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
toolchain: ${{ matrix.rust }} | ||
args: --release --target ${{ matrix.target }} | ||
|
||
- name: Packaging final binary | ||
shell: bash | ||
run: | | ||
cd target/${{ matrix.target }}/release | ||
strip spt | ||
tar czvf spotify-tui-${{ matrix.artifact_prefix }}.tar.gz spt | ||
shasum -a 256 spotify-tui-${{ matrix.artifact_prefix }}.tar.gz > spotify-tui-${{ matrix.artifact_prefix }}.sha256 | ||
- name: Releasing assets | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: | | ||
target/${{ matrix.target }}/release/spotify-tui-${{ matrix.artifact_prefix }}.tar.gz | ||
target/${{ matrix.target }}/release/spotify-tui-${{ matrix.artifact_prefix }}.sha256 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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
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
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
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