Skip to content

Commit

Permalink
Add deploy job
Browse files Browse the repository at this point in the history
  • Loading branch information
dplloyd committed Mar 26, 2024
1 parent 9159940 commit 7d779bc
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/_bike-counter.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
on:
schedule:
- cron: '30 4 * * *'

permissions:
contents: write
pages: write
id-token: write

jobs:
update-report:
Expand Down Expand Up @@ -39,4 +42,23 @@ jobs:
git config --local user.name "GitHub Actions"
git add bike-counter/index.html
git commit -m 'Cycling count data updated' || echo "No changes to commit"
git push origin || echo "No changes to commit"
git push origin || echo "No changes to commit"
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 7d779bc

Please sign in to comment.