diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 20f6922..e22af9f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,30 +1,26 @@ -# This is a basic workflow to help you get started with Actions +name: Generate Snake Animation -name: Build CI - -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the master branch on: - push: - branches: [master] - pull_request: - branches: [master] + schedule: + - cron: "0 */6 * * *" + workflow_dispatch: -# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - # This workflow contains a single job called "build" build: - # The type of runner that the job will run on runs-on: ubuntu-latest - env: - BIT_TOKEN: ${{ secrets.BIT_TOKEN }} - # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - # Install dependencies and build app - - name: Install Dependencies - run: npm install - - name: Build app - run: npm run build + - uses: Platane/snk@v3 + with: + github_user_name: ${{ github.repository_owner }} + outputs: | + dist/github-contribution-grid-snake.svg + dist/github-contribution-grid-snake-dark.svg?palette=github-dark + + - uses: crazy-max/ghaction-github-pages@v2.1.3 + with: + target_branch: output + build_dir: dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}