Skip to content

Commit

Permalink
ci: automated releases via GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
uwla committed Sep 9, 2024
1 parent f6a5620 commit 2660e51
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and Release

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '22'

- name: Install dependencies
run: npm install

- name: Build demo
run: npm run build:demo

- name: Rename built files
run: mv dist/index.html dist/app.html

- name: Release
uses: softprops/action-gh-release@v2
with:
files: dist/app.html

permissions:
contents: write

0 comments on commit 2660e51

Please sign in to comment.