Merge pull request #1 from patryk-ku/dev #2
Workflow file for this run
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
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/[email protected] | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: target/release/mpris-discord-rpc | |