Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yasiupl authored Oct 9, 2023
1 parent ca854c7 commit c47b1de
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,12 @@
name: 'Miesięczna aktualizacja danych'

on:
workflow_dispatch:
schedule:
# Run montly at 26th
- cron: '0 0 26 * *'


jobs:
jobs:
build:
name: Request Netlify Webhook
runs-on: ubuntu-latest
steps:
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
netlify-config-path: '../netlify.toml'
publish-dir: '../dist'
production-branch: master
deploy-message: "Deployed from GitHub Actions"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1
- name: Curl request
run: curl -X POST -d {} ${{ secrets.NETLIFY_BUILD_HOOK }}

0 comments on commit c47b1de

Please sign in to comment.