새로운 블로그 게시글 스크래핑 #487
This file contains 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: 새로운 블로그 게시글 스크래핑 | |
on: | |
schedule: | |
- cron: '0 20 * * *' | |
workflow_dispatch: | |
jobs: | |
scrap_blog_post: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/[email protected] | |
- name: Set up Java | |
uses: actions/[email protected] | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Install Gradle | |
uses: gradle/[email protected] | |
with: | |
gradle-version: '8.10' | |
- name: Build with Gradle | |
run: | | |
./gradlew clean build -x test | |
env: | |
SPRING_DATASOURCE_URL: ${{ secrets.AWS_URL }} | |
SPRING_DATASOURCE_USERNAME: ${{ secrets.AWS_DB_USERNAME }} | |
SPRING_DATASOURCE_PASSWORD: ${{ secrets.AWS_DB_PASSWORD }} | |
working-directory: TechBlogNotificationsScrapper | |
- name: Run JAR for Scrap posts | |
run: java -jar ./build/libs/TechBlogNotificationsScrapper-0.0.1-SNAPSHOT.jar | |
env: | |
SPRING_DATASOURCE_URL: ${{ secrets.AWS_URL }} | |
SPRING_DATASOURCE_USERNAME: ${{ secrets.AWS_DB_USERNAME }} | |
SPRING_DATASOURCE_PASSWORD: ${{ secrets.AWS_DB_PASSWORD }} | |
working-directory: TechBlogNotificationsScrapper |