simple server and dockerfile #1
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: Build and Package LINSTOR GUI | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
tags: | |
- 'v*' # This will trigger the workflow for any tag starting with 'v' | |
jobs: | |
build-and-package: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.14.0' | |
- name: Get the version | |
id: get_version | |
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT | |
- name: Install dependencies | |
run: npm install | |
- name: Build | |
run: npm run build | |
- name: Package | |
run: | | |
tar -czvf linstor-gui-${{ steps.get_version.outputs.VERSION }}.tar.gz -C dist . | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: linstor-gui-${{ steps.get_version.outputs.VERSION }}.tar.gz | |
path: linstor-gui-${{ steps.get_version.outputs.VERSION }}.tar.gz |