This repository has been archived by the owner on Nov 18, 2024. It is now read-only.
Update dependencies #29
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 Release | |
on: | |
push: | |
tags: | |
- '*' | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build Taboo with absolute paths | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache node modules | |
uses: actions/cache@v4 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Install modules | |
run: npm install | |
- name: Run build | |
run: npm run build | |
- name: Create package | |
uses: thedoctor0/zip-release@master | |
with: | |
type: 'zip' | |
path: 'dist' | |
filename: 'taboo-build.zip' | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: build | |
path: taboo-build.zip | |
build-relative: | |
name: Build Taboo with relative paths | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache node modules | |
uses: actions/cache@v4 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Install modules | |
run: npm install | |
- name: Run build | |
run: npm run build | |
env: | |
APP_RELATIVE: true | |
- name: Create package | |
uses: thedoctor0/zip-release@master | |
with: | |
type: 'zip' | |
path: 'dist' | |
filename: 'taboo-build-relative.zip' | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: build-relative | |
path: taboo-build-relative.zip |