Rename universities to no longer use a prefix to be compatible with t… #93
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Main | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
jobs: | |
render: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Install inkscape | |
run: sudo add-apt-repository ppa:inkscape.dev/stable && sudo apt update && sudo apt-get install inkscape | |
- run: inkscape --version | |
- run: pip install svgutils | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Run export | |
run: ./export.sh --universities --companies --studies --background --transparent --organisations --output-directory out 64 256 | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: logos | |
path: out | |
test: | |
needs: render | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: logos | |
path: out | |
# Thanks to Verwoerd | |
# https://github.com/Programming-Contest-Foundation/logo/blob/main/.github/workflows/main.yml | |
- name: Test in DJ | |
run: | | |
cd ${{ github.workspace }} | |
./.github/workflows/generate-metadata.sh | |
sudo apt update; sudo apt install cutycapt xvfb httpie -y | |
docker compose -f .github/workflows/domjudge/docker-compose.yml up -d mariadb | |
sleep 30s | |
docker compose -f .github/workflows/domjudge/docker-compose.yml up -d domjudge | |
sleep 1m | |
$(docker exec -i domjudge-domjudge-1 cd affilDOMjudge; yes | import-contest) | |
xvfb-run --server-args="-screen 0, 1024x768x24" cutycapt --url=http://localhost:12345 --out=scoreboard.png | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: DJ_scoreboard | |
path: scoreboard.png | |
release: | |
needs: render | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: actions/[email protected] | |
with: | |
name: logos | |
path: out | |
- name: Zip logos | |
run: cd ${{ github.workspace }}/out; for i in */; do zip -r "${i%/}.zip" "$i"; done; cd ${{ github.workspace }} | |
- name: Zip contest package | |
run: cd ${{ github.workspace }}/out; zip -r contest-package.zip contest-package/ cd ${{ github.workspace }} | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
if: github.ref == 'refs/heads/main' | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "latest" | |
prerelease: false | |
files: | | |
${{ github.workspace }}/out/*.zip | |
${{ github.workspace }}/out/organizations.json |