Skip to content

Commit f942afa

Browse files
committed
Guard integration tests rather than removing them, try deploying in same step as build
1 parent 075d655 commit f942afa

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/build_and_publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,16 @@ jobs:
5757
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5858
SEGMENT_KEY: ${{ secrets.SEGMENT_KEY }}
5959
- run: npm run test:int
60+
if: "github.ref_name != 'main'"
6061
env:
6162
CI: true
6263
PATH_PREFIX_FLAG: "${{ github.ref_name == 'main' && '--prefix-paths' || '' }}"
64+
- name: Deploy
65+
if: "github.repository == 'quarkusio/extensions' && github.ref_name == 'main' && (github.event_name == 'push' || github.event_name == 'schedule')"
66+
uses: JamesIves/github-pages-deploy-action@v4
67+
with:
68+
folder: public # The folder the action should deploy.
69+
branch: pages
6370
- name: Store PR id
6471
if: "github.event_name == 'pull_request'"
6572
run: echo ${{ github.event.number }} > ./public/pr-id.txt
@@ -72,7 +79,7 @@ jobs:
7279
retention-days: 4
7380
deploy:
7481
# Only try and deploy on merged code
75-
if: "github.repository == 'quarkusio/extensions' && github.ref_name == 'main' && (github.event_name == 'push' || github.event_name == 'schedule')"
82+
if: "'false' == 'no'" # github.repository == 'quarkusio/extensions' && github.ref_name == 'main' && (github.event_name == 'push' || github.event_name == 'schedule')"
7683
needs: [ unit-test, build ]
7784
permissions:
7885
contents: write

0 commit comments

Comments
 (0)