Build fixes #24
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 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-website: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: bypass npm bug | |
run: rm package-lock.json | |
- name: version | |
run: echo "build_version=$(cat VERSION.md)" >> $GITHUB_ENV | |
id: version | |
- run: npm install | |
- name: Publish release | |
run: npm run build --if-present | |
# no tests for now... | |
# - run: npm test | |
# publish | |
- name: Publish | |
run: cd ./.output/ && tar -czf veil.tools-${{ env.build_version }}.tar.gz * | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: veil.tools-${{ env.build_version }} | |
path: ./.output/veil.tools-${{ env.build_version }}.tar.gz |