Skip to content

Commit

Permalink
wip: test
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva committed May 23, 2022
1 parent 57937fa commit 1ecf327
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ on:
paths-ignore:
- '*.md'
- 'docs/**'
pull_request:
paths-ignore:
- '*.md'
- 'docs/**'
# pull_request:
# paths-ignore:
# - '*.md'
# - 'docs/**'

env:
# Github container registry https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry
Expand All @@ -17,6 +17,7 @@ env:
jobs:
lint:
runs-on: ubuntu-latest
if: false
steps:
- uses: actions/checkout@v2

Expand All @@ -32,6 +33,7 @@ jobs:

style:
runs-on: ubuntu-latest
if: false
steps:
- uses: actions/checkout@v2
- uses: ./.github/custom-actions/clojure-env
Expand All @@ -42,6 +44,7 @@ jobs:

carve:
runs-on: ubuntu-latest
if: false
steps:
- uses: actions/checkout@v2
- uses: ./.github/custom-actions/clojure-env
Expand All @@ -52,6 +55,7 @@ jobs:

test:
runs-on: ubuntu-latest
if: false
steps:
- uses: actions/checkout@v2
- uses: ./.github/custom-actions/clojure-env
Expand All @@ -75,6 +79,7 @@ jobs:

e2e:
runs-on: ubuntu-latest
if: false
steps:
- uses: actions/checkout@v2
- uses: ./.github/custom-actions/clojure-env
Expand All @@ -100,8 +105,8 @@ jobs:


build-app:
needs: [test, lint, style, carve]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
# needs: [test, lint, style, carve]
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -130,7 +135,7 @@ jobs:
release-web:
needs: [build-app]
# Only deploy on v2.* tag pushes to the default branch (main).
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v2.')
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v2.')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -142,13 +147,18 @@ jobs:
name: app
path: resources

- name: Copy built app to a vercel prod deploy folder
run: mkdir -p vercel-prod/vercel-static/athens && cp -R resources/public/. vercel-prod/vercel-static/athens/

- name: debug
run: ls -la vercel-prod/vercel-static/athens/

- uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}}
vercel-args: '--prod'
working-directory: ./resources/public
vercel-args: './vercel-prod/ --prod'


release-electron:
Expand Down
7 changes: 7 additions & 0 deletions vercel-prod/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"description": "dummy package.json for the release-web github actions job",
"scripts": {
"vercel:install": "echo skipping install",
"vercel:build": "echo skipping build"
}
}

0 comments on commit 1ecf327

Please sign in to comment.