From 21768b1b594eaf16061c38edf7856a9cda41820a Mon Sep 17 00:00:00 2001 From: antelle Date: Mon, 1 Jun 2020 15:55:52 +0200 Subject: [PATCH] testing builds --- .github/workflows/build.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index dde69af3..7abf932a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v2 with: repository: keeweb/keeweb -# ref: develop + ref: ${{ secrets.KW_CI_DEBUG_REF || github.sha }} - name: Install npm modules run: npm ci - name: Test @@ -43,7 +43,7 @@ jobs: - uses: actions/checkout@v2 with: repository: keeweb/keeweb -# ref: develop + ref: ${{ secrets.KW_CI_DEBUG_REF || github.sha }} - name: Download artifact uses: actions/download-artifact@v1 with: @@ -104,7 +104,7 @@ jobs: - uses: actions/checkout@v2 with: repository: keeweb/keeweb -# ref: develop + ref: ${{ secrets.KW_CI_DEBUG_REF || github.sha }} - name: Download artifact uses: actions/download-artifact@v1 with: @@ -151,8 +151,8 @@ jobs: tagRegexGroup: 1 - uses: actions/checkout@v2 with: - repository: 'keeweb/keeweb' -# ref: 'develop' + repository: keeweb/keeweb + ref: ${{ secrets.KW_CI_DEBUG_REF || github.sha }} - name: Download artifact uses: actions/download-artifact@v1 with: @@ -223,7 +223,7 @@ jobs: with: repository: keeweb/keeweb path: keeweb -# ref: develop + ref: ${{ secrets.KW_CI_DEBUG_REF || github.sha }} - name: Install npm modules working-directory: keeweb run: npm ci @@ -321,6 +321,7 @@ jobs: - name: Tag the Docker image run: docker tag antelle/keeweb:latest antelle/keeweb:${{ steps.get_tag.outputs.tag }} - name: Push the Docker image to the registry + if: ${{ github.repository == 'keeweb/keeweb' }} run: docker push antelle/keeweb - name: Create a GitHub release id: create_release @@ -493,4 +494,5 @@ jobs: working-directory: gh-pages run: python3 ../keeweb/.github/actions/scripts/git-restore-mtime.py - name: Sync the website + if: ${{ github.repository == 'keeweb/keeweb' }} run: gsutil -m rsync -r -d -x "^\." gh-pages gs://app.keeweb.info/