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 2f86be9
Show file tree
Hide file tree
Showing 72 changed files with 34,974 additions and 14 deletions.
39 changes: 25 additions & 14 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,7 +105,7 @@ jobs:


build-app:
needs: [test, lint, style, carve]
# needs: [test, lint, style, carve]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -128,27 +133,33 @@ jobs:


release-web:
needs: [build-app]
# 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
- uses: ./.github/custom-actions/node-env

- name: Download built app
uses: actions/download-artifact@v2
with:
name: app
path: resources
# - name: Download built app
# uses: actions/download-artifact@v2
# with:
# name: app
# path: resources

# - name: Copy built app
# run: cp -R resources/public/. vercel-static/athens/

- name: debug
run: ls -la 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-static/athens/ --prod'
working-directory: ./vercel-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"
}
}
Loading

0 comments on commit 2f86be9

Please sign in to comment.