update dependencies #547
This file contains hidden or 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: Build | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - main | |
| paths-ignore: | |
| - '*.md' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Source | |
| uses: actions/checkout@v7 | |
| with: | |
| path: "src" | |
| - name: Checkout Builds Branch | |
| uses: actions/checkout@v7 | |
| with: | |
| ref: "builds" | |
| path: "builds" | |
| - name: Clean old builds | |
| run: | | |
| rm $GITHUB_WORKSPACE/builds/*.cs3 || true | |
| rm $GITHUB_WORKSPACE/builds/*.jar || true | |
| - name: Setup JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 21 | |
| distribution: temurin | |
| cache: gradle | |
| - name: Setup Android SDK | |
| uses: android-actions/setup-android@v4.0.1 | |
| - name: Build Plugins | |
| working-directory: ${{ github.workspace }}/src | |
| env: | |
| DUBBINDO_PASSWORD: ${{ secrets.DUBBINDO_PASS }} | |
| DUBBINDO_USERNAME: ${{ secrets.DUBBINDO_USER }} | |
| run: | | |
| chmod +x gradlew | |
| ./gradlew make makePluginsJson | |
| cp **/build/*.cs3 ${{ github.workspace }}/builds/ | |
| cp build/plugins.json ${{ github.workspace }}/builds/ | |
| - name: Push builds | |
| working-directory: ${{ github.workspace }}/builds | |
| run: | | |
| git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git config --local user.name "github-actions[bot]" | |
| git add . | |
| if git diff --staged --quiet; then | |
| echo "do not error if nothing to commit." | |
| exit 0 | |
| fi | |
| git commit --amend -m "Build ${{ github.sha }}" | |
| git push --force |