Skip to content

Commit

Permalink
Add release CI
Browse files Browse the repository at this point in the history
  • Loading branch information
NotNite committed Dec 5, 2023
1 parent 9a1d43d commit bd356ab
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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: 8
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
run: pnpm run build
- name: Create archive
run: tar -czf ./dist.tar.gz ./dist

- name: Deploy to GitHub
uses: ncipollo/release-action@v1
with:
artifacts: ./dist.tar.gz
bodyFile: ./CHANGELOG.md
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
dist/
dist.tar.gz
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Initial release
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "moonlight",
"version": "1.0.0",
"description": "Yet another Discord mod",
"homepage": "https://github.com/moonlight-mod/moonlight#readme",
"homepage": "https://moonlight-mod.github.io/",
"repository": {
"type": "git",
"url": "git+https://github.com/moonlight-mod/moonlight.git"
Expand Down

0 comments on commit bd356ab

Please sign in to comment.