Skip to content

Commit 9e69fc4

Browse files
committed
implement new CI with Github Actions
Signed-off-by: Mateus Felipe C. C. Pinto <[email protected]>
1 parent b52d232 commit 9e69fc4

File tree

4 files changed

+69
-21
lines changed

4 files changed

+69
-21
lines changed

.github/workflows/deployment.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Deploy to Pages
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
9+
10+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
17+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
18+
concurrency:
19+
group: "pages"
20+
cancel-in-progress: false
21+
22+
jobs:
23+
build:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout files
27+
uses: actions/checkout@v4
28+
- name: Copy static assets to dist
29+
shell: bash
30+
run: |
31+
make
32+
mkdir static
33+
find . "(" -name "*.html" -o -name "*.css" -o -name "*.js" ")" -not -path "./static/*" -not -path "./.github/*" -exec cp {} static \;
34+
- name: Upload static assets
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: static_assets
38+
path: ./static
39+
deploy:
40+
needs: build
41+
environment:
42+
name: github-pages
43+
url: ${{ steps.deployment.outputs.page_url }}
44+
runs-on: ubuntu-latest
45+
steps:
46+
- name: Download static_assets
47+
uses: actions/download-artifact@v4
48+
with:
49+
name: static_assets
50+
- name: ls
51+
shell: bash
52+
run: |
53+
echo "lsing"
54+
ls -la .
55+
- name: Setup Pages
56+
uses: actions/configure-pages@v5
57+
- name: Upload artifact
58+
uses: actions/upload-pages-artifact@v3
59+
with:
60+
path: ./
61+
- name: Deploy to GitHub Pages
62+
id: deployment
63+
uses: actions/deploy-pages@v4

.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

org-theme/setup/long.setup

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
# I recommend you to generate your own css/js files by forking, cloning and customizing the file
2121
# theme.json before building it.
2222
#
23-
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="/org-theme/dist/long/bundle.css"/>
24-
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="/css/syntax.css" />
25-
#+HTML_HEAD: <script src="/org-theme/dist/long/bundle.js" type="text/javascript" ></script>
23+
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="bundle.css"/>
24+
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="syntax.css" />
25+
#+HTML_HEAD: <script src="bundle.js" type="text/javascript" ></script>

org-theme/setup/short.setup

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
# theme.json before building it.
1818
#
1919
#
20-
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="/org-theme/dist/short/bundle.css"/>
21-
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="/css/syntax.css" />
22-
#+HTML_HEAD: <script src="/org-theme/dist/short/bundle.js" type="text/javascript" ></script>
20+
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="bundle.css"/>
21+
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="syntax.css" />
22+
#+HTML_HEAD: <script src="bundle.js" type="text/javascript" ></script>

0 commit comments

Comments
 (0)