Skip to content

Commit

Permalink
try fixing workflow yaml too
Browse files Browse the repository at this point in the history
  • Loading branch information
gamesguru committed Mar 2, 2024
1 parent fa3c02f commit d096817
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,14 @@ jobs:
- name: Extras / Count Lines of Source Code
run: make extras/cloc

- name: Install requirements
run: make init

# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Build [Dev] (and Deploy)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- name: Build (dev)
if: github.ref == 'refs/heads/dev'
run: pnpm build:dev

- name: Deploy (dev) [Copy static files over]
if: github.ref == 'refs/heads/dev'
run: rm -rf /var/www/app/* && mv build/* /var/www/app/

# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Lint
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- name: Lint
run: pnpm lint
run: make format

- name: Check
run: pnpm check
run: git diff origin HEAD --quiet

# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Build [Prod] (and Upload binary)
Expand All @@ -52,7 +37,7 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
run: |
RELEASE_TAG=v$(jq -r .version package.json)
RELEASE_TAG=v$(python3 sql/latest_version.py)
echo RELEASE_TAG=$RELEASE_TAG
test -n "$RELEASE_TAG"
# Test that github-cli is working
Expand Down

0 comments on commit d096817

Please sign in to comment.