1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-10-02 13:37:21 +02:00

try GITHUB_TOKEN

This commit is contained in:
GilbN 2023-09-30 11:17:43 +02:00
parent 0a6cc7bd5c
commit 62de098576

View File

@ -23,7 +23,7 @@ jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3.1.0 - uses: actions/checkout@v4.1.0
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Wrong domain check - name: Wrong domain check
@ -34,7 +34,7 @@ jobs:
exit 1 exit 1
fi fi
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.3.0 uses: actions/setup-python@v4.7.0
with: with:
python-version: '3.10' python-version: '3.10'
- name: Run themes.py - name: Run themes.py
@ -65,28 +65,28 @@ jobs:
fi fi
done done
- name: Deploy - name: Deploy
uses: peaceiris/actions-gh-pages@v3.8.0 uses: peaceiris/actions-gh-pages@v3.9.3
if: ${{ github.ref == 'refs/heads/master' || github.event.inputs.branch == 'master' }} if: ${{ github.ref == 'refs/heads/master' || github.event.inputs.branch == 'master' }}
with: with:
publish_dir: ./ publish_dir: ./
publish_branch: live publish_branch: live
github_token: ${{ secrets.GH_PAT }} github_token: ${{ secrets.GITHUB_TOKEN }}
exclude_assets: '' exclude_assets: ''
- name: Deploy Develop - name: Deploy Develop
uses: peaceiris/actions-gh-pages@v3.8.0 uses: peaceiris/actions-gh-pages@v3.9.3
if: ${{ github.ref == 'refs/heads/develop' || github.event.inputs.branch == 'develop' }} if: ${{ github.ref == 'refs/heads/develop' || github.event.inputs.branch == 'develop' }}
with: with:
publish_dir: ./ publish_dir: ./
publish_branch: live_develop publish_branch: live_develop
github_token: ${{ secrets.GH_PAT }} github_token: ${{ secrets.GITHUB_TOKEN }}
exclude_assets: '' exclude_assets: ''
- name: Deploy Testing - name: Deploy Testing
uses: peaceiris/actions-gh-pages@v3.8.0 uses: peaceiris/actions-gh-pages@v3.9.3
if: ${{ github.ref == 'refs/heads/testing' || github.event.inputs.branch == 'testing' }} if: ${{ github.ref == 'refs/heads/testing' || github.event.inputs.branch == 'testing' }}
with: with:
publish_dir: ./ publish_dir: ./
publish_branch: live_testing publish_branch: live_testing
github_token: ${{ secrets.GH_PAT }} github_token: ${{ secrets.GITHUB_TOKEN }}
exclude_assets: '' exclude_assets: ''
- name: Clear CF Cache - name: Clear CF Cache
run: | run: |