From bc360e59691e47814be1e5d55618c689fc81e1bc Mon Sep 17 00:00:00 2001 From: Jasper Timmer Date: Sun, 22 Oct 2023 21:15:12 +0200 Subject: [PATCH 01/11] Attempt to generify the github actions and update chrome --- .github/workflows/base-jobs.yml | 34 +++++++++++++++++++++++++++ .github/workflows/pr-builder.yml | 31 ++++-------------------- .github/workflows/website-builder.yml | 30 ++++------------------- 3 files changed, 42 insertions(+), 53 deletions(-) create mode 100644 .github/workflows/base-jobs.yml diff --git a/.github/workflows/base-jobs.yml b/.github/workflows/base-jobs.yml new file mode 100644 index 000000000..704fb2e5b --- /dev/null +++ b/.github/workflows/base-jobs.yml @@ -0,0 +1,34 @@ +name: Base Website builder + +on: + workflow_call: + +jobs: + website: + name: Build the Rascal website + runs-on: buildjet-4vcpu-ubuntu-2204 + steps: + - name: Clone + uses: actions/checkout@v3 + + - uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '11' + cache: 'maven' + + - uses: actions/setup-node@v3 + with: + node-version: 16 + cache: yarn + + - uses: browser-actions/setup-chrome@latest + with: + chrome-version: 'stable' + - run: which chrome + - uses: nanasess/setup-chromedriver@v2 + - run: which chromedriver + + # Copy docs from dependent projects, run tutor on local courses folder and copy results into docs and static/assets + - name: Run rascal-tutor and reuse libraries + run: MAVEN_OPTIONS="-Xss256m -Xmx3G" mvn -B clean package -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -Dwebdriver.chrome.browser=`which chrome` \ No newline at end of file diff --git a/.github/workflows/pr-builder.yml b/.github/workflows/pr-builder.yml index 2a1adae10..627b07a40 100644 --- a/.github/workflows/pr-builder.yml +++ b/.github/workflows/pr-builder.yml @@ -8,35 +8,12 @@ on: jobs: website-pr: name: Build the Rascal website - runs-on: ubuntu-latest + runs-on: buildjet-4vcpu-ubuntu-2204 steps: - - name: Clone - uses: actions/checkout@v3 - - - uses: actions/setup-java@v3 - with: - distribution: 'temurin' - java-version: '11' - cache: 'maven' - - - uses: actions/setup-node@v3 - with: - node-version: 16.x - cache: yarn - - - uses: browser-actions/setup-chrome@latest - with: - chrome-version: 1047731 # v107 - - run: which chrome - - uses: nanasess/setup-chromedriver@v1 - with: - chromedriver-version: '107.0.5304.62' - - run: which chromedriver - - # Copy docs from dependent projects, run tutor on local courses folder and copy results into docs and static/assets - - name: Run rascal-tutor and reuse libraries - run: MAVEN_OPTS="-Xss256m -Xmx3G" mvn -B clean package -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -Dwebdriver.chrome.browser=`which chrome` + # Do the base actions + - uses: .github/base-jobs.yml + # Do a dummy build to see if there are errors - name: Install dependencies run: yarn install --frozen-lockfile - name: Build website diff --git a/.github/workflows/website-builder.yml b/.github/workflows/website-builder.yml index 4ed6b941a..4d38441e5 100644 --- a/.github/workflows/website-builder.yml +++ b/.github/workflows/website-builder.yml @@ -10,33 +10,10 @@ jobs: name: Build the Rascal website runs-on: buildjet-4vcpu-ubuntu-2204 steps: - - name: Clone - uses: actions/checkout@v3 - - - uses: actions/setup-java@v3 - with: - distribution: 'temurin' - java-version: '11' - cache: 'maven' - - - uses: actions/setup-node@v3 - with: - node-version: 16 - cache: yarn - - - uses: browser-actions/setup-chrome@latest - with: - chrome-version: 1047731 # v107 - - run: which chrome - - uses: nanasess/setup-chromedriver@v1 - with: - chromedriver-version: '107.0.5304.62' - - run: which chromedriver - - # Copy docs from dependent projects, run tutor on local courses folder and copy results into docs and static/assets - - name: Run rascal-tutor and reuse libraries - run: MAVEN_OPTIONS="-Xss256m -Xmx3G" mvn -B clean package -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -Dwebdriver.chrome.browser=`which chrome` + # Do the base actions + - uses: .github/base-jobs.yml + # Production deploy - name: Netlify Deploy uses: jsmrcaga/action-netlify-deploy@v2.0.0 with: @@ -46,6 +23,7 @@ jobs: install_command: yarn install --frozen-lockfile build_command: yarn build + # Production reindex - name: Algolia crawler creation and crawl uses: algolia/algoliasearch-crawler-github-actions@v1.1.10 id: algolia_crawler From 4a230efc446b2730a5c1414fa9f3ce9ded7c6904 Mon Sep 17 00:00:00 2001 From: Jasper Timmer Date: Sun, 22 Oct 2023 21:17:26 +0200 Subject: [PATCH 02/11] missing ./ --- .github/workflows/pr-builder.yml | 2 +- .github/workflows/website-builder.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-builder.yml b/.github/workflows/pr-builder.yml index 627b07a40..de536b1f0 100644 --- a/.github/workflows/pr-builder.yml +++ b/.github/workflows/pr-builder.yml @@ -11,7 +11,7 @@ jobs: runs-on: buildjet-4vcpu-ubuntu-2204 steps: # Do the base actions - - uses: .github/base-jobs.yml + - uses: ./.github/base-jobs.yml # Do a dummy build to see if there are errors - name: Install dependencies diff --git a/.github/workflows/website-builder.yml b/.github/workflows/website-builder.yml index 4d38441e5..6947cae3e 100644 --- a/.github/workflows/website-builder.yml +++ b/.github/workflows/website-builder.yml @@ -11,7 +11,7 @@ jobs: runs-on: buildjet-4vcpu-ubuntu-2204 steps: # Do the base actions - - uses: .github/base-jobs.yml + - uses: ./.github/base-jobs.yml # Production deploy - name: Netlify Deploy From f9b6cc7cfd6de756084a64e158c7e6521c38f1cc Mon Sep 17 00:00:00 2001 From: Jasper Timmer Date: Sun, 22 Oct 2023 21:20:36 +0200 Subject: [PATCH 03/11] Do checkout before calling base actions --- .github/workflows/base-jobs.yml | 5 +---- .github/workflows/pr-builder.yml | 5 ++++- .github/workflows/website-builder.yml | 3 +++ 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/base-jobs.yml b/.github/workflows/base-jobs.yml index 704fb2e5b..a0c5191f8 100644 --- a/.github/workflows/base-jobs.yml +++ b/.github/workflows/base-jobs.yml @@ -7,10 +7,7 @@ jobs: website: name: Build the Rascal website runs-on: buildjet-4vcpu-ubuntu-2204 - steps: - - name: Clone - uses: actions/checkout@v3 - + steps: - uses: actions/setup-java@v3 with: distribution: 'temurin' diff --git a/.github/workflows/pr-builder.yml b/.github/workflows/pr-builder.yml index de536b1f0..a04d59deb 100644 --- a/.github/workflows/pr-builder.yml +++ b/.github/workflows/pr-builder.yml @@ -10,7 +10,10 @@ jobs: name: Build the Rascal website runs-on: buildjet-4vcpu-ubuntu-2204 steps: - # Do the base actions + - name: Clone + uses: actions/checkout@v3 + + # Do the base actions - uses: ./.github/base-jobs.yml # Do a dummy build to see if there are errors diff --git a/.github/workflows/website-builder.yml b/.github/workflows/website-builder.yml index 6947cae3e..42e55673b 100644 --- a/.github/workflows/website-builder.yml +++ b/.github/workflows/website-builder.yml @@ -10,6 +10,9 @@ jobs: name: Build the Rascal website runs-on: buildjet-4vcpu-ubuntu-2204 steps: + - name: Clone + uses: actions/checkout@v3 + # Do the base actions - uses: ./.github/base-jobs.yml From db514aa48582042727bbd456600ba0aec9a702ce Mon Sep 17 00:00:00 2001 From: Jasper Timmer Date: Sun, 22 Oct 2023 21:38:36 +0200 Subject: [PATCH 04/11] use artifacts between files --- .github/workflows/base-jobs.yml | 22 ++++++++++++++++++---- .github/workflows/pr-builder.yml | 15 ++++++++++++--- .github/workflows/website-builder.yml | 13 +++++++++++-- 3 files changed, 41 insertions(+), 9 deletions(-) diff --git a/.github/workflows/base-jobs.yml b/.github/workflows/base-jobs.yml index a0c5191f8..44bdacca5 100644 --- a/.github/workflows/base-jobs.yml +++ b/.github/workflows/base-jobs.yml @@ -4,10 +4,13 @@ on: workflow_call: jobs: - website: - name: Build the Rascal website + prepare-sources: + name: Prepare the website sources runs-on: buildjet-4vcpu-ubuntu-2204 - steps: + steps: + - name: Clone + uses: actions/checkout@v4 + - uses: actions/setup-java@v3 with: distribution: 'temurin' @@ -28,4 +31,15 @@ jobs: # Copy docs from dependent projects, run tutor on local courses folder and copy results into docs and static/assets - name: Run rascal-tutor and reuse libraries - run: MAVEN_OPTIONS="-Xss256m -Xmx3G" mvn -B clean package -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -Dwebdriver.chrome.browser=`which chrome` \ No newline at end of file + run: MAVEN_OPTIONS="-Xss256m -Xmx3G" mvn -B clean package -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -Dwebdriver.chrome.browser=`which chrome` + + - uses: actions/upload-artifact@v3 + with: + name: sources + path: | + . + !target/ + !.git/ + !.github/ + !.vscode + !META-INF \ No newline at end of file diff --git a/.github/workflows/pr-builder.yml b/.github/workflows/pr-builder.yml index a04d59deb..9c7913361 100644 --- a/.github/workflows/pr-builder.yml +++ b/.github/workflows/pr-builder.yml @@ -7,15 +7,24 @@ on: jobs: website-pr: - name: Build the Rascal website + name: Sanity check the Rascal website runs-on: buildjet-4vcpu-ubuntu-2204 steps: + # Checkout only the workflow folder for this commit (else it uses main branch) - name: Clone - uses: actions/checkout@v3 + uses: actions/checkout@v4 + with: + filter: '.github' - # Do the base actions + # Do the base actions - uses: ./.github/base-jobs.yml + # Download prepared sources from base + - name: Download sources + uses: actions/download-artifact@v3 + with: + name: sources + # Do a dummy build to see if there are errors - name: Install dependencies run: yarn install --frozen-lockfile diff --git a/.github/workflows/website-builder.yml b/.github/workflows/website-builder.yml index 42e55673b..5a1c889a9 100644 --- a/.github/workflows/website-builder.yml +++ b/.github/workflows/website-builder.yml @@ -7,15 +7,24 @@ on: jobs: website: - name: Build the Rascal website + name: Deploy the Rascal website runs-on: buildjet-4vcpu-ubuntu-2204 steps: + # Checkout only the workflow folder for this commit (else it uses main branch) - name: Clone - uses: actions/checkout@v3 + uses: actions/checkout@v4 + with: + filter: '.github' # Do the base actions - uses: ./.github/base-jobs.yml + # Download prepared sources from base + - name: Download sources + uses: actions/download-artifact@v3 + with: + name: sources + # Production deploy - name: Netlify Deploy uses: jsmrcaga/action-netlify-deploy@v2.0.0 From cd34cf3c49489937fdfaf14f7e68890fac8a0ac0 Mon Sep 17 00:00:00 2001 From: Jasper Timmer Date: Sun, 22 Oct 2023 21:43:34 +0200 Subject: [PATCH 05/11] wrong keyword --- .github/workflows/pr-builder.yml | 2 +- .github/workflows/website-builder.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-builder.yml b/.github/workflows/pr-builder.yml index 9c7913361..73f83cbbe 100644 --- a/.github/workflows/pr-builder.yml +++ b/.github/workflows/pr-builder.yml @@ -14,7 +14,7 @@ jobs: - name: Clone uses: actions/checkout@v4 with: - filter: '.github' + sparse-checkout: '.github' # Do the base actions - uses: ./.github/base-jobs.yml diff --git a/.github/workflows/website-builder.yml b/.github/workflows/website-builder.yml index 5a1c889a9..5b252e3cb 100644 --- a/.github/workflows/website-builder.yml +++ b/.github/workflows/website-builder.yml @@ -14,7 +14,7 @@ jobs: - name: Clone uses: actions/checkout@v4 with: - filter: '.github' + sparse-checkout: '.github' # Do the base actions - uses: ./.github/base-jobs.yml From d1a1eb664d7b1319b34b6b8f23a03c4f0008d65a Mon Sep 17 00:00:00 2001 From: Jasper Timmer Date: Sun, 22 Oct 2023 21:56:20 +0200 Subject: [PATCH 06/11] Found a missing folder in a path and 'uses' on wrong scope --- .github/workflows/pr-builder.yml | 13 ++++--------- .github/workflows/website-builder.yml | 13 ++++--------- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/.github/workflows/pr-builder.yml b/.github/workflows/pr-builder.yml index 73f83cbbe..07adbb31c 100644 --- a/.github/workflows/pr-builder.yml +++ b/.github/workflows/pr-builder.yml @@ -6,19 +6,14 @@ on: - website-v2 jobs: + prepare-website: + uses: ./.github/workflows/base-jobs.yml + website-pr: name: Sanity check the Rascal website runs-on: buildjet-4vcpu-ubuntu-2204 + needs: prepare-website steps: - # Checkout only the workflow folder for this commit (else it uses main branch) - - name: Clone - uses: actions/checkout@v4 - with: - sparse-checkout: '.github' - - # Do the base actions - - uses: ./.github/base-jobs.yml - # Download prepared sources from base - name: Download sources uses: actions/download-artifact@v3 diff --git a/.github/workflows/website-builder.yml b/.github/workflows/website-builder.yml index 5b252e3cb..ca922be4a 100644 --- a/.github/workflows/website-builder.yml +++ b/.github/workflows/website-builder.yml @@ -6,19 +6,14 @@ on: - website-v2 jobs: + prepare-website: + uses: ./.github/workflows/base-jobs.yml + website: name: Deploy the Rascal website runs-on: buildjet-4vcpu-ubuntu-2204 + needs: prepare-website steps: - # Checkout only the workflow folder for this commit (else it uses main branch) - - name: Clone - uses: actions/checkout@v4 - with: - sparse-checkout: '.github' - - # Do the base actions - - uses: ./.github/base-jobs.yml - # Download prepared sources from base - name: Download sources uses: actions/download-artifact@v3 From 9f74035933421fe2551cef07951aec060748c871 Mon Sep 17 00:00:00 2001 From: Jasper Timmer Date: Sun, 22 Oct 2023 22:00:19 +0200 Subject: [PATCH 07/11] match chromedriver to chrome --- .github/workflows/base-jobs.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/base-jobs.yml b/.github/workflows/base-jobs.yml index 44bdacca5..967e957dc 100644 --- a/.github/workflows/base-jobs.yml +++ b/.github/workflows/base-jobs.yml @@ -25,8 +25,11 @@ jobs: - uses: browser-actions/setup-chrome@latest with: chrome-version: 'stable' + id: setup-chrome - run: which chrome - uses: nanasess/setup-chromedriver@v2 + with: + chromedriver-version: ${{ steps.setup-chrome.outputs.chrome-version }} - run: which chromedriver # Copy docs from dependent projects, run tutor on local courses folder and copy results into docs and static/assets From 7ce78dc47b85236b44af12ee2162a07b725f2768 Mon Sep 17 00:00:00 2001 From: Jasper Timmer Date: Sun, 22 Oct 2023 22:11:29 +0200 Subject: [PATCH 08/11] Speedup up/download of artifacts --- .github/workflows/base-jobs.yml | 12 +++++------- .github/workflows/pr-builder.yml | 3 +++ .github/workflows/website-builder.yml | 3 +++ 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/base-jobs.yml b/.github/workflows/base-jobs.yml index 967e957dc..e5e24a724 100644 --- a/.github/workflows/base-jobs.yml +++ b/.github/workflows/base-jobs.yml @@ -36,13 +36,11 @@ jobs: - name: Run rascal-tutor and reuse libraries run: MAVEN_OPTIONS="-Xss256m -Xmx3G" mvn -B clean package -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -Dwebdriver.chrome.browser=`which chrome` + # Big speedup over uploading seperate files + - name: Tar files + run: tar --exclude='target' --exclude='.github' --exclude='.vscode' --exclude='META-INF' -cvf sources.tar . + - uses: actions/upload-artifact@v3 with: name: sources - path: | - . - !target/ - !.git/ - !.github/ - !.vscode - !META-INF \ No newline at end of file + path: sources.tar \ No newline at end of file diff --git a/.github/workflows/pr-builder.yml b/.github/workflows/pr-builder.yml index 07adbb31c..708e57d27 100644 --- a/.github/workflows/pr-builder.yml +++ b/.github/workflows/pr-builder.yml @@ -20,6 +20,9 @@ jobs: with: name: sources + - name: Untar files + run: tar -xvf sources.tar + # Do a dummy build to see if there are errors - name: Install dependencies run: yarn install --frozen-lockfile diff --git a/.github/workflows/website-builder.yml b/.github/workflows/website-builder.yml index ca922be4a..3d2a33063 100644 --- a/.github/workflows/website-builder.yml +++ b/.github/workflows/website-builder.yml @@ -19,6 +19,9 @@ jobs: uses: actions/download-artifact@v3 with: name: sources + + - name: Untar files + run: tar -xvf sources.tar # Production deploy - name: Netlify Deploy From ee1abd3624a56bb1fdc36240b00cbe0947b0e1b8 Mon Sep 17 00:00:00 2001 From: Jasper Timmer Date: Tue, 24 Oct 2023 21:09:15 +0200 Subject: [PATCH 09/11] Remove explicit artifact creation as test --- .github/workflows/base-jobs.yml | 9 --------- .github/workflows/pr-builder.yml | 10 +--------- .github/workflows/website-builder.yml | 9 --------- 3 files changed, 1 insertion(+), 27 deletions(-) diff --git a/.github/workflows/base-jobs.yml b/.github/workflows/base-jobs.yml index e5e24a724..ef8b9066a 100644 --- a/.github/workflows/base-jobs.yml +++ b/.github/workflows/base-jobs.yml @@ -35,12 +35,3 @@ jobs: # Copy docs from dependent projects, run tutor on local courses folder and copy results into docs and static/assets - name: Run rascal-tutor and reuse libraries run: MAVEN_OPTIONS="-Xss256m -Xmx3G" mvn -B clean package -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -Dwebdriver.chrome.browser=`which chrome` - - # Big speedup over uploading seperate files - - name: Tar files - run: tar --exclude='target' --exclude='.github' --exclude='.vscode' --exclude='META-INF' -cvf sources.tar . - - - uses: actions/upload-artifact@v3 - with: - name: sources - path: sources.tar \ No newline at end of file diff --git a/.github/workflows/pr-builder.yml b/.github/workflows/pr-builder.yml index 708e57d27..4b6ab8ea0 100644 --- a/.github/workflows/pr-builder.yml +++ b/.github/workflows/pr-builder.yml @@ -14,17 +14,9 @@ jobs: runs-on: buildjet-4vcpu-ubuntu-2204 needs: prepare-website steps: - # Download prepared sources from base - - name: Download sources - uses: actions/download-artifact@v3 - with: - name: sources - - - name: Untar files - run: tar -xvf sources.tar - # Do a dummy build to see if there are errors - name: Install dependencies run: yarn install --frozen-lockfile + - name: Build website run: yarn build diff --git a/.github/workflows/website-builder.yml b/.github/workflows/website-builder.yml index 3d2a33063..f46a8a7c8 100644 --- a/.github/workflows/website-builder.yml +++ b/.github/workflows/website-builder.yml @@ -14,15 +14,6 @@ jobs: runs-on: buildjet-4vcpu-ubuntu-2204 needs: prepare-website steps: - # Download prepared sources from base - - name: Download sources - uses: actions/download-artifact@v3 - with: - name: sources - - - name: Untar files - run: tar -xvf sources.tar - # Production deploy - name: Netlify Deploy uses: jsmrcaga/action-netlify-deploy@v2.0.0 From d477e3600d871fbc830200ba4aa2095cf3b5828e Mon Sep 17 00:00:00 2001 From: Jasper Timmer Date: Tue, 24 Oct 2023 21:13:59 +0200 Subject: [PATCH 10/11] Revert "Remove explicit artifact creation as test" This reverts commit ee1abd3624a56bb1fdc36240b00cbe0947b0e1b8. --- .github/workflows/base-jobs.yml | 9 +++++++++ .github/workflows/pr-builder.yml | 10 +++++++++- .github/workflows/website-builder.yml | 9 +++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/base-jobs.yml b/.github/workflows/base-jobs.yml index ef8b9066a..e5e24a724 100644 --- a/.github/workflows/base-jobs.yml +++ b/.github/workflows/base-jobs.yml @@ -35,3 +35,12 @@ jobs: # Copy docs from dependent projects, run tutor on local courses folder and copy results into docs and static/assets - name: Run rascal-tutor and reuse libraries run: MAVEN_OPTIONS="-Xss256m -Xmx3G" mvn -B clean package -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -Dwebdriver.chrome.browser=`which chrome` + + # Big speedup over uploading seperate files + - name: Tar files + run: tar --exclude='target' --exclude='.github' --exclude='.vscode' --exclude='META-INF' -cvf sources.tar . + + - uses: actions/upload-artifact@v3 + with: + name: sources + path: sources.tar \ No newline at end of file diff --git a/.github/workflows/pr-builder.yml b/.github/workflows/pr-builder.yml index 4b6ab8ea0..708e57d27 100644 --- a/.github/workflows/pr-builder.yml +++ b/.github/workflows/pr-builder.yml @@ -14,9 +14,17 @@ jobs: runs-on: buildjet-4vcpu-ubuntu-2204 needs: prepare-website steps: + # Download prepared sources from base + - name: Download sources + uses: actions/download-artifact@v3 + with: + name: sources + + - name: Untar files + run: tar -xvf sources.tar + # Do a dummy build to see if there are errors - name: Install dependencies run: yarn install --frozen-lockfile - - name: Build website run: yarn build diff --git a/.github/workflows/website-builder.yml b/.github/workflows/website-builder.yml index f46a8a7c8..3d2a33063 100644 --- a/.github/workflows/website-builder.yml +++ b/.github/workflows/website-builder.yml @@ -14,6 +14,15 @@ jobs: runs-on: buildjet-4vcpu-ubuntu-2204 needs: prepare-website steps: + # Download prepared sources from base + - name: Download sources + uses: actions/download-artifact@v3 + with: + name: sources + + - name: Untar files + run: tar -xvf sources.tar + # Production deploy - name: Netlify Deploy uses: jsmrcaga/action-netlify-deploy@v2.0.0 From a9c417676116f6c3d346c8e2e58c55b3b706fbba Mon Sep 17 00:00:00 2001 From: Jasper Timmer Date: Tue, 24 Oct 2023 21:40:13 +0200 Subject: [PATCH 11/11] [skip ci] exclude git folder from artifact --- .github/workflows/base-jobs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/base-jobs.yml b/.github/workflows/base-jobs.yml index e5e24a724..9185b7b32 100644 --- a/.github/workflows/base-jobs.yml +++ b/.github/workflows/base-jobs.yml @@ -38,7 +38,7 @@ jobs: # Big speedup over uploading seperate files - name: Tar files - run: tar --exclude='target' --exclude='.github' --exclude='.vscode' --exclude='META-INF' -cvf sources.tar . + run: tar --exclude='target' --exclude='.git' --exclude='.github' --exclude='.vscode' --exclude='META-INF' -cvf sources.tar . - uses: actions/upload-artifact@v3 with: