Skip to content

Commit cac386f

Browse files
committed
2025.07.22 update
1 parent a974286 commit cac386f

2 files changed

Lines changed: 58 additions & 6 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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

src/robots.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
User-agent: *
22
Allow: /
33

4-
User-agent: Yandex
5-
Allow: /
6-
7-
User-agent: Googlebot
8-
Allow: /
9-
104
Host: https://metamod-r.org/
115

126
Sitemap: https://metamod-r.org/sitemap.xml

0 commit comments

Comments
 (0)