Skip to content

Commit

Permalink
Create deploy_pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-lysk authored Jul 27, 2023
1 parent 1eb66d9 commit 3038aed
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy_pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy GitHub Pages

on:
# Trigger the deployment manually when a workflow_dispatch event is manually triggered
workflow_dispatch:

# Trigger the deployment periodically on a schedule (every day at 00:00 UTC)
schedule:
- cron: '0 0 * * *'

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2

- name: Build your site # Modify this step to build your GitHub Pages site if needed
# For example, if your site is built using Jekyll:
# run: jekyll build
- name: Fetch Plugin Info
run: |
# Fetch JSON data and store it as plugininfo.json
curl -sSL https://www.figma.com/api/plugins/1205803482754362456/versions > plugininfo.json
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
# Set the build directory where your site is generated
publish_dir: . # Change this path if your site is generated to a different folder

# Set the GitHub Token as a secret or environment variable.
# This token is required to push to the repository. It is provided by GitHub Actions by default.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3038aed

Please sign in to comment.