Skip to content

Build and Release IsThereAnyDeal for Deck #18

Build and Release IsThereAnyDeal for Deck

Build and Release IsThereAnyDeal for Deck #18

Workflow file for this run

name: Build and Release IsThereAnyDeal for Deck
on:
push:
tags:
- 'v*'
pull_request:
branches: ['main']
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: holo-docker
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '18.3'
- name: Install pnpm
run: npm i -g [email protected]
- name: Install Dependencies
run: pnpm install
- name: Download Decky CLI
run: |
mkdir /tmp/decky-cli
curl -L -o /tmp/decky-cli/decky "https://github.com/SteamDeckHomebrew/cli/releases/download/0.0.2/decky-linux-x86_64"
chmod +x /tmp/decky-cli/decky
echo "/tmp/decky-cli" >> $GITHUB_PATH
- name: Build plugin
run: |
decky plugin build -b -o /tmp/output -s directory $GITHUB_WORKSPACE
- name: Upload package
uses: actions/upload-artifact@v2
with:
name: isthereanydeal-for-deck
path: |
/tmp/output
release:
needs: build
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v3
with:
name: isthereanydeal-for-deck
path: isthereanydeal-for-deck
- name: zip/tar release
run: |
zip -r isthereanydeal-for-deck.zip isthereanydeal-for-deck/*
tar -czvf isthereanydeal-for-deck.tar.gz isthereanydeal-for-deck
- name: Create a release
uses: ncipollo/release-action@v1
with:
artifacts: 'isthereanydeal-for-deck.zip,isthereanydeal-for-deck.tar.gz'