File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111
1212# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1313permissions :
14- contents : write
14+ contents : read
1515 pages : write
1616 id-token : write
1717
@@ -22,28 +22,8 @@ concurrency:
2222 cancel-in-progress : false
2323
2424jobs :
25- minify :
26- runs-on : ubuntu-latest
27-
28- steps :
29- - name : Checkout code
30- uses : actions/checkout@v4
31- with :
32- token : ${{ secrets.GITHUB_TOKEN }}
33-
34- - name : auto minify the files
35- uses : nizarmah/auto-minify@v3
36- with :
37- output : ' minified'
38-
39- - name : auto commit the minified files
40- uses : stefanzweifel/git-auto-commit-action@v5
41- with :
42- commit_message : " bot: Add auto minified files"
43-
4425 # Single deploy job since we're just deploying
4526 deploy :
46- needs : minify
4727 environment :
4828 name : github-pages
4929 url : ${{ steps.deployment.outputs.page_url }}
@@ -53,15 +33,10 @@ jobs:
5333 uses : actions/checkout@v4
5434 - name : Setup Pages
5535 uses : actions/configure-pages@v5
56- - name : Download minified artifact
57- uses : actions/download-artifact@v4
58- with :
59- name : minified
60- path : .
6136 - name : Upload artifact
6237 uses : actions/upload-pages-artifact@v3
6338 with :
64- path : ' minified '
39+ path : ' . '
6540 - name : Deploy to GitHub Pages
6641 id : deployment
6742 uses : actions/deploy-pages@v4
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments