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 builds to GitHub Releases | |
on: | |
push: | |
tags: | |
- "v*" | |
permissions: | |
contents: write | |
jobs: | |
release: | |
name: Release builds to GitHub Releases | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 9 | |
run_install: false | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build moonlight | |
env: | |
NODE_ENV: production | |
MOONLIGHT_BRANCH: stable | |
MOONLIGHT_VERSION: ${{ github.ref_name }} | |
run: pnpm run build | |
- name: Create archive | |
run: | | |
cd ./dist | |
tar -czf ../dist.tar.gz * | |
cd .. | |
- name: Deploy to GitHub | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: ./dist.tar.gz | |
bodyFile: ./CHANGELOG.md |