From 3038aed9a8074b74bb5342ed570b2b3f99170af5 Mon Sep 17 00:00:00 2001 From: martin-lysk <113943358+martin-lysk@users.noreply.github.com> Date: Thu, 27 Jul 2023 11:36:17 +0200 Subject: [PATCH] Create deploy_pages.yml --- .github/workflows/deploy_pages.yml | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/deploy_pages.yml diff --git a/.github/workflows/deploy_pages.yml b/.github/workflows/deploy_pages.yml new file mode 100644 index 0000000..06b8272 --- /dev/null +++ b/.github/workflows/deploy_pages.yml @@ -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 }}