Skip to content

🙈 proto: ignore build directory #160

🙈 proto: ignore build directory

🙈 proto: ignore build directory #160

Workflow file for this run

name: build
on:
push:
jobs:
frontend:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 22
- name: Install dependencies
run: npm --prefix frontend/ install
- name: build frontend
run: npm --prefix frontend/ run build
- name: create frontend archive
uses: ksm2/archive-action@v1
with:
format: "tar.gz"
name: frontend
root-directory: "frontend/dist/"
- name: commit to transcribee-frontend-releases repo
if: github.ref == 'refs/heads/main'
shell: bash
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add - <<< "${{ secrets.FRONTEND_RELEASE_DEPLOY_KEY }}"
git config --global user.email "[email protected]"
git config --global user.name "Vegan Bug Bakery CI"
git clone [email protected]:bugbakery/transcribee-frontend-releases.git
cp frontend.tar.gz transcribee-frontend-releases/frontend-${{github.sha}}.tar.gz
cd transcribee-frontend-releases/
git add *.tar.gz
git commit -m "Add frontend build ${{github.sha}}"
git push