Build and Deploy Lists #561
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 and Deploy Lists | |
| on: | |
| pull_request: | |
| branches: [ "main" ] | |
| schedule: | |
| - cron: '0 */6 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 25 | |
| - name: Create Shadow JAR | |
| run: gradle shadowJar | |
| - name: Create Lists | |
| run: | | |
| mkdir -p dist | |
| cd dist | |
| java -cp ../build/libs/kickmail-all.jar io.noticeable.kickmail.AggregateLists | |
| ls -lh | |
| - name: Publish | |
| uses: cloudflare/[email protected] | |
| with: | |
| accountId: ${{ secrets.CF_ACCOUNT_ID }} | |
| apiToken: ${{ secrets.CF_API_TOKEN }} | |
| command: pages deploy ./ --project-name kickmail | |
| workingDirectory: dist |