Skip to content

Commit

Permalink
add files
Browse files Browse the repository at this point in the history
  • Loading branch information
patryk-ku committed Jan 24, 2024
1 parent 451ab91 commit fcd172d
Show file tree
Hide file tree
Showing 7 changed files with 2,765 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LASTFM_API_KEY=key-here
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: release

on:
push:
tags:
- '**'

env:
CARGO_TERM_COLOR: always

jobs:
release:

runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v3
- name: Install Ubuntu dependencies
run: |
sudo apt-get update
sudo apt install libdbus-1-dev pkg-config
- name: 'Create env file'
run: |
touch .env
echo LASTFM_API_KEY=${{ secrets.LASTFM_API_KEY }} >> .env
cat .env
- name: Build
run: |
cargo build --release
- name: GH Release
uses: softprops/action-gh-release@v0.1.15
if: startsWith(github.ref, 'refs/tags/')
with:
files: target/release/mpris-discord-rpc

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/target
.env
25 changes: 25 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "cargo",
"command": "run",
"problemMatcher": [
"$rustc"
],
"label": "rust: cargo run",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "dedicated",
"showReuseMessage": true,
"clear": true
}
}
]
}
Loading

0 comments on commit fcd172d

Please sign in to comment.