Skip to content

feat: github: Create a github action for nginx service #1

feat: github: Create a github action for nginx service

feat: github: Create a github action for nginx service #1

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Create Release - Node.js
on:
push:
branches:
- "build/nginx-production"
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Build Svelte - Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm run build
- uses: montudor/action-zip@v1
with:
args: zip -qq -r mutiny-nginx-dist-${{ github.ref }}.zip dist
- name: Create Release - Node.js ${{ matrix.node-version }}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: mutiny-nginx-dist-${{ github.ref }}.zip
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Description of release
draft: false
prerelease: false