Skip to content

Rename universities to no longer use a prefix to be compatible with t… #98

Rename universities to no longer use a prefix to be compatible with t…

Rename universities to no longer use a prefix to be compatible with t… #98

Workflow file for this run

---
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 --contest-package --background --transparent --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 -w /tmp/icpc-logos domjudge-domjudge-1 "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