Skip to content

Commit

Permalink
Revert "Remove explicit artifact creation as test"
Browse files Browse the repository at this point in the history
This reverts commit ee1abd3.
  • Loading branch information
JJWTimmer committed Oct 24, 2023
1 parent ee1abd3 commit d477e36
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/base-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 9 additions & 1 deletion .github/workflows/pr-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 9 additions & 0 deletions .github/workflows/website-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand Down

0 comments on commit d477e36

Please sign in to comment.