Skip to content

Commit

Permalink
feat: Add deployment workflow
Browse files Browse the repository at this point in the history
This commit introduces a new GitHub Actions workflow for building and zipping the release artifacts. It triggers on push events, sets up Node.js, installs dependencies, executes the build script, zips the resulting artifacts, and finally uploads them as an artifact. This automation will significantly streamline the deployment process.
  • Loading branch information
jgoedde committed Jul 19, 2024
1 parent d203de3 commit a7a17a4
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and Zip Release

on:
push:
tags:
- '^(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>0|[1-9]\d*)(?:-(?P<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P<buildmetadata>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$'

jobs:
build-and-zip:
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: Run build script
run: npm run build:release

- name: Zip artifacts
run: zip -r release.zip ./build/src

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: release-artifact
path: release.zip

0 comments on commit a7a17a4

Please sign in to comment.