Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
yashash-pugalia committed Sep 6, 2022
0 parents commit 1d02f86
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Main

on:
push:
branches: [main]

schedule:
- cron: "0 * * * *"

workflow_dispatch:

permissions:
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: true

jobs:
Main:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest

steps:
- run: |
curl https://newsapi.org/v2/top-headlines -G \
-d language=en \
-d pageSize=35 \
-d apiKey=${{ secrets.NEWSAPI_KEY }} \
-o news.json
- uses: actions/upload-pages-artifact@v1
with:
path: .

- id: deployment
uses: actions/deploy-pages@v1

0 comments on commit 1d02f86

Please sign in to comment.