-
Notifications
You must be signed in to change notification settings - Fork 0
106 lines (85 loc) · 3.1 KB
/
main.yml
File metadata and controls
106 lines (85 loc) · 3.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: Build and Deploy to IPFS Cluster
permissions:
contents: read
pull-requests: write
statuses: write
on:
push:
branches:
- main
pull_request:
jobs:
build-and-deploy-storacha-and-ipfs-cluster:
runs-on: ubuntu-latest
outputs: # This exposes the CID output of the action to the rest of the workflow
cid: ${{ steps.deploy.outputs.cid }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build hexcamp-welcome
uses: Tiryoh/actions-mkdocs@v0
with:
configfile: "mkdocs-hexcamp-welcome.yml"
- name: Build hexcamp-dev-portal
uses: Tiryoh/actions-mkdocs@v0
with:
configfile: "mkdocs-hexcamp-dev-portal.yml"
- name: Build vichex-welcome
uses: Tiryoh/actions-mkdocs@v0
with:
configfile: "mkdocs-vichex-welcome.yml"
- name: Build vichex-arts-map
uses: Tiryoh/actions-mkdocs@v0
with:
configfile: "mkdocs-vichex-arts-map.yml"
- name: Build vichex-search-experiment
uses: Tiryoh/actions-mkdocs@v0
with:
configfile: "mkdocs-vichex-search-experiment.yml"
- name: Build hackmd-publishing-test-page
uses: Tiryoh/actions-mkdocs@v0
with:
configfile: "mkdocs-hackmd-publishing-test-page.yml"
- name: Build seahex-welcome
uses: Tiryoh/actions-mkdocs@v0
with:
configfile: "mkdocs-seahex-welcome.yml"
- name: Build vanhex-welcome
uses: Tiryoh/actions-mkdocs@v0
with:
configfile: "mkdocs-vanhex-welcome.yml"
- name: Build islandhex-welcome
uses: Tiryoh/actions-mkdocs@v0
with:
configfile: "mkdocs-islandhex-welcome.yml"
- name: Build peerhex-americas-welcome
uses: Tiryoh/actions-mkdocs@v0
with:
configfile: "mkdocs-peerhex-americas-welcome.yml"
- name: List dirs
run: ls -l site/*
- name: Remove timestamps
run: sudo perl -pi -e 's/^Build Date UTC.*//' site/*/index.html
- name: Remove compressed sitemap.xml.gz files
run: sudo rm -f site/*/sitemap.xml.gz
- uses: ipfs/ipfs-deploy-action@v1
name: Deploy to Storacha and IPFS
id: deploy
with:
path-to-deploy: site
#storacha-key: ${{ secrets.STORACHA_KEY }}
#storacha-proof: ${{ secrets.STORACHA_PROOF }}
cluster-url: ${{ secrets.CLUSTER_URL }}
cluster-user: ${{ secrets.CLUSTER_USER }}
cluster-password: ${{ secrets.CLUSTER_PASSWORD }}
github-token: ${{ github.token }}
- name: Check dns trace
run: dig +trace 6kgv3nw3nw2q.seahex.org
- name: Check dns trace after CNAME
run: dig +trace 5.6.6.6.6.6.6.6.6.6.6.6.5.2.3.20.h3.seahex.org.
- name: Check dns
run: dig 6kgv3nw3nw2q.seahex.org
- name: Test ping
run: ping -c 1 6kgv3nw3nw2q.seahex.org || true
- name: Call hackmd-updater API with CID
run: curl -X POST -u admin:${{ secrets.HACKMD_UPDATER_PASSWORD }} https://6kgv3nw3nw2q.seahex.org/publish/${{ steps.deploy.outputs.cid }}