Skip to content

Typo in error message #281

Typo in error message

Typo in error message #281

Workflow file for this run

name: npm build
on: [push]
jobs:
read_fe_tag:
runs-on: ubuntu-latest
outputs:
fe_tag: ${{ steps.fe_tag_step.outputs.fe_tag }}
steps:
- uses: actions/checkout@v4
- name: Get CamillaGUI tag from versions.yml
id: fe_tag_step
run: |
FE_TAG=$(sed -n 's/camillagui_tag: \(.*\)$/\1/p' release_automation/versions.yml)
echo "fe_tag=$FE_TAG"
echo "fe_tag=$FE_TAG" >> "$GITHUB_OUTPUT"
build_fe:
runs-on: ubuntu-latest
needs: read_fe_tag
steps:
- uses: actions/checkout@v4
name: Check out frontend ${{ needs.read_fe_tag.outputs.fe_tag }}
with:
repository: HEnquist/camillagui
ref: ${{ needs.read_fe_tag.outputs.fe_tag }}
- name: Build and publish
uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm install
- run: npm run build
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: build
path: build
build_and_test_be:
runs-on: ubuntu-latest
needs: build_fe
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install template render dependencies
run: |
python -m pip install --upgrade pip
python -m pip install jinja2 PyYAML
- name: Render scripts from templates
run: python -Bm release_automation.render_env_files
- name: Install requirements
run: python -m pip install -r requirements.txt
- name: Set up pytest
run: python -m pip install pytest-aiohttp
- name: Run python tests
run: python -Bm pytest
- name: Clean up
run: |
rm -rf release_automation
rm -rf tests
- name: Download frontend
uses: actions/download-artifact@v4
- name: Create zip
run: zip -r camillagui.zip *
- name: Upload all as artifact
uses: actions/upload-artifact@v4
with:
name: camillagui-backend
path: |
.
!.git*
- name: Upload binaries to release
if: contains(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: camillagui.zip
asset_name: camillagui.zip
tag: ${{ github.ref }}