Require an explicit essentials.nightvision.others grant to toggle oth… #8
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: Command and Permissions Data | |
| on: | |
| push: | |
| branches: | |
| - 2.x | |
| jobs: | |
| data: | |
| name: Generate and Upload | |
| # Uploads to EssentialsX's R2 bucket; only meaningful (and only has secrets) in the upstream repository. | |
| if: github.repository == 'EssentialsX/Essentials' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Git Repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 17 | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Generate Data | |
| run: | | |
| chmod +x gradlew | |
| ./gradlew commandData | |
| ./gradlew versionData | |
| - name: Upload Data | |
| uses: ryand56/r2-upload-action@v1 | |
| with: | |
| r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | |
| r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| r2-bucket: ${{ secrets.R2_BUCKET }} | |
| source-dir: generated | |
| destination-dir: ./ | |