From 99693f66d477fcdbb529d1b91bb1dca238f68f8b Mon Sep 17 00:00:00 2001 From: p-goulart Date: Mon, 5 Feb 2024 13:59:33 +0100 Subject: [PATCH] huh why is it not triggering --- .github/workflows/build.yml | 4 ++-- .github/workflows/deploy.yml | 11 ++++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b9ee716..6b181c5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -98,7 +98,7 @@ jobs: path: ${{ env.LT_HOME }} token: ${{ secrets.LT_OS_TOKEN }} # TODO: remove this once the new tokenisation branch is merged into master! - branch: pt/dict/new_tokenisation + ref: pt/dict/new_tokenisation - name: Build LT working-directory: ${{ env.LT_HOME }} @@ -143,7 +143,7 @@ jobs: # TODO: uncomment after this is tested to limit archiving to PRs to main # TODO: add extra condition here to check for success of tests?? # Only do it after a successful build and push to main -# if: github.event_name == 'push' && github.ref == 'refs/heads/main' + # if: github.event_name == 'push' && github.ref == 'refs/heads/main' uses: actions/upload-artifact@v2 with: name: src diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9dff6b0..2f299d7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,10 +18,15 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - - name: Download artifact + # Necessary since downloading artefacts with an 'overwrite' option is not supported + - name: Empty out src directory + run: rm -rf results/java-lt/src + + - name: Download artefact uses: actions/download-artifact@v3 with: name: src + path: results/java-lt/ - name: Set dictionary version # TODO: remove 'test-' prefix! @@ -45,5 +50,5 @@ jobs: GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} - run: | - mvn clean deploy -P release + working-directory: results/java-lt + run: mvn clean deploy -P release