├── .github └── workflows │ └── nightly-build.yml └── README.md /.github/workflows/nightly-build.yml: -------------------------------------------------------------------------------- 1 | on: 2 | schedule: 3 | - cron: '30 18 * * *' 4 | push: 5 | branches: [ "main" ] 6 | 7 | jobs: 8 | build: 9 | runs-on: ubuntu-latest 10 | steps: 11 | # - name: Checkout Appkit Repo 12 | # uses: actions/checkout@v3 13 | # with: 14 | # repository: grishka/appkit 15 | 16 | # - name: set up JDK 17 17 | # uses: actions/setup-java@v3 18 | # with: 19 | # java-version: '17' 20 | # distribution: 'corretto' 21 | # cache: gradle 22 | 23 | # - name: Comment out signing config in appkits gradle file 24 | # run: | 25 | # sed -i 's/sign publishing\.publications\.release/\/\/ sign publishing.publications.release/' appkit/maven-push.gradle 26 | # - name: Grant execute permission for gradlew for Appkit 27 | # run: chmod +x gradlew 28 | 29 | # - name: Compile appkit 30 | # run: ./gradlew publishToMavenLocal 31 | 32 | - name: CHeckout Moshidon Repo 33 | uses: actions/checkout@v3 34 | with: 35 | fetch-depth: 0 # Required to count the commits 36 | repository: LucasGGamerM/moshidon 37 | 38 | - name: Get new commits 39 | run: echo "NEW_COMMIT_COUNT=$(git log --oneline --since '24 hours ago' | wc -l)" >> $GITHUB_ENV 40 | 41 | - name: Get current date 42 | id: date 43 | run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT 44 | 45 | - name: Set up JDK 17 46 | uses: actions/setup-java@v3 47 | with: 48 | java-version: '17' 49 | distribution: 'temurin' 50 | cache: gradle 51 | 52 | - name: Grant execute permission for gradlew 53 | run: chmod +x gradlew 54 | 55 | - name: Decode Keystore 56 | id: decode_keystore 57 | uses: timheuer/base64-to-file@v1 58 | with: 59 | fileName: 'nightly_keystore.jks' 60 | fileDir: './mastodon/keystore/' 61 | encodedString: ${{ secrets.KEYSTORE }} 62 | 63 | - name: Build with Gradle 64 | run: ./gradlew assembleNightly 65 | env: 66 | SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }} 67 | SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} 68 | SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }} 69 | CURRENT_DATE: ${{ steps.date.outputs.date }} 70 | 71 | - name: Upload a Build Artifact 72 | uses: actions/upload-artifact@v4 73 | with: 74 | name: moshidon-nightly.apk 75 | path: ./mastodon/build/outputs/apk/nightly/moshidon-nightly.apk 76 | 77 | - name: Create release 78 | uses: "marvinpinto/action-automatic-releases@latest" 79 | if: ${{ env.NEW_COMMIT_COUNT > 0 }} 80 | with: 81 | repo_token: "${{ secrets.GH_TOKEN }}" 82 | automatic_release_tag: nightly-${{ steps.date.outputs.date }} 83 | title: Nightly ${{ steps.date.outputs.date }} 84 | prerelease: false 85 | files: | 86 | ./mastodon/build/outputs/apk/nightly/moshidon-nightly.apk 87 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # moshidon-nightly 2 | Nightly releases page for Moshidon. For full source, check https://github.com/LucasGGamerM/moshidon 3 | 4 | That is it. This is just a repo created to host the nightly releases of Moshidon without spammming the main repo. 5 | --------------------------------------------------------------------------------