name: Build & Publish on: push: workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Install Dependencies run: | apt update && apt install -y curl flex bzip2 git make gcc g++ libgmp-dev libmpfr-dev libmpc-dev gcc-multilib - name: Build run: bash build.sh - name: Upload run: | curl --user "${GITEA_USER}:${GITEA_TOKEN}" \ --upload-file "s2oj-gcc-$(cat GCC_VERSION)~1baoshuo1.deb" \ ${GITEA_ENDPOINT}/api/packages/${GITEA_USER}/debian/pool/all/main/upload env: GITEA_ENDPOINT: https://git.m.ac GITEA_USER: baoshuo GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}