File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy to GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ # Review gh actions docs if you want to further define triggers, paths, etc
8+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
9+
10+ jobs :
11+ upload :
12+ name : Prepare and upload
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ with :
17+ fetch-depth : 0
18+
19+ - name : Upload Build Artifact
20+ uses : actions/upload-pages-artifact@v3
21+ with :
22+ path : src
23+ - name : Package site
24+ id : packaging-job
25+ run :
26+ 7z a -tzip metamod-org-src.zip ./src/*
27+
28+ - name : Upload to Releases
29+ uses : softprops/action-gh-release@v2
30+ env :
31+ GITHUB_TOKEN : ${{ secrets.API_TOKEN }}
32+ id : publish-job
33+ if : |
34+ startsWith(github.ref, 'refs/tags/') &&
35+ steps.packaging-job.outcome == 'success'
36+ with :
37+ files : |
38+ *.zip
39+
40+ deploy :
41+ name : Deploy to GitHub Pages
42+ needs : upload
43+
44+ # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
45+ permissions :
46+ pages : write # to deploy to Pages
47+ id-token : write # to verify the deployment originates from an appropriate source
48+
49+ # Deploy to the github-pages environment
50+ environment :
51+ name : github-pages
52+ url : ${{ steps.deployment.outputs.page_url }}
53+
54+ runs-on : ubuntu-latest
55+ steps :
56+ - name : Deploy to GitHub Pages
57+ id : deployment
58+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 11User-agent: *
22Allow: /
33
4- User-agent: Yandex
5- Allow: /
6-
7- User-agent: Googlebot
8- Allow: /
9-
104Host: https://metamod-r.org/
115
126Sitemap: https://metamod-r.org/sitemap.xml
You can’t perform that action at this time.
0 commit comments