-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (60 loc) · 2.48 KB
/
build-an-publish-page.yml
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
# Name of your GitHub Actions workflow.
name: Build & Publish to GitHub Pages
# Specifies to run this workflow whenever a push is made (commits are
# added) to the branch named `jekyll`.
on:
push:
branches:
# Change this to the branch where you keep your Jekyll code.
- master
# Define a job named `build-and-publish` in your workflow.
jobs:
build-and-publish:
runs-on: ubuntu-latest # This job uses a GitHub-hosted runner.
steps:
# Checkout the source from the `jekyll` branch.
- name: Check out Model Repository
uses: actions/checkout@v2
with:
# Repository name with owner. For example, actions/checkout
# Default: ${{ github.repository }}
repository: 'AKSW/aksw.org-model'
path: 'aksw-model'
- run: docker network ls
- name: Run Fuseki
run: docker run -p 3030:3030 -v ${{ github.workspace }}/aksw-model:/staging --network "bridge" --hostname fuseki --name fuseki -d stain/jena-fuseki /jena-fuseki/fuseki-server --file=/staging/aksw.org.nt /aksw
- run: docker network ls
- name: curl 1
uses: wei/curl@master
continue-on-error: true
with:
args: https://fuseki:3030/aksw
- name: curl 2
uses: wei/curl@master
continue-on-error: true
with:
args: https://localhost:3030/aksw
- name: curl 3
uses: wei/curl@master
continue-on-error: true
with:
args: https://host.docker.internal:3030/aksw
- run: docker network ls
#
# - name: Check out Site Repository
# uses: actions/checkout@v2
# - name: Build
# uses: fabacab/jekyll-builder-for-github-pages-action@master
# env:
# # use mongodb for the host here because we have specified a container for the job.
# # If we were running the job on the VM this would be localhost
# FUSEKI_HOST: fuseki
# FUSEKI_PORT: ${{ job.services.fuseki.ports[3030] }}
# Invoke this action against the newly checked out source code.
# - uses: fabacab/jekyll-builder-for-github-pages-action@master
# with:
# # Provide this action with your repository's `GH_PAGES_TOKEN`
# # "Secret" variable. This should be the value of a personal
# # access token granted, at a minimum, the `public_repo` and
# # the `repo_deployment` scopes needed to deploy to GH Pages.
# secret_gh_pages_api_token: ${{ secrets.GH_PAGES_TOKEN }}