diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6203f51..5b7dece 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,8 +1,12 @@ -name: Deploy +name: $hyoo_studio + +# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs#defining-access-for-the-github_token-permissions +permissions: write-all on: workflow_dispatch: push: + pull_request: schedule: - cron: "0 7 * * *" @@ -13,15 +17,11 @@ jobs: steps: - - name: Build app - uses: hyoo-ru/mam_build@master2 + - uses: hyoo-ru/mam_build@master2 with: - token: ${{ secrets.GH_PAT }} package: 'hyoo/studio' - - name: Deploy on GitHub Pages + - uses: hyoo-ru/gh-deploy@v4.4.1 if: github.ref == 'refs/heads/master' - uses: alex-page/blazing-fast-gh-pages-deploy@v1.1.0 with: - repo-token: ${{ secrets.GH_PAT }} - site-directory: 'hyoo/studio/-' + folder: 'hyoo/studio/-'