Skip to content

Commit fcd172d

Browse files
committed
add files
1 parent 451ab91 commit fcd172d

File tree

7 files changed

+2765
-0
lines changed

7 files changed

+2765
-0
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
LASTFM_API_KEY=key-here

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- '**'
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
jobs:
12+
release:
13+
14+
runs-on: ubuntu-latest
15+
16+
permissions:
17+
contents: write
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: Install Ubuntu dependencies
22+
run: |
23+
sudo apt-get update
24+
sudo apt install libdbus-1-dev pkg-config
25+
- name: 'Create env file'
26+
run: |
27+
touch .env
28+
echo LASTFM_API_KEY=${{ secrets.LASTFM_API_KEY }} >> .env
29+
cat .env
30+
- name: Build
31+
run: |
32+
cargo build --release
33+
- name: GH Release
34+
uses: softprops/action-gh-release@v0.1.15
35+
if: startsWith(github.ref, 'refs/tags/')
36+
with:
37+
files: target/release/mpris-discord-rpc
38+

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/target
2+
.env

.vscode/tasks.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "cargo",
6+
"command": "run",
7+
"problemMatcher": [
8+
"$rustc"
9+
],
10+
"label": "rust: cargo run",
11+
"group": {
12+
"kind": "build",
13+
"isDefault": true
14+
},
15+
"presentation": {
16+
"echo": true,
17+
"reveal": "always",
18+
"focus": true,
19+
"panel": "dedicated",
20+
"showReuseMessage": true,
21+
"clear": true
22+
}
23+
}
24+
]
25+
}

0 commit comments

Comments
 (0)