Skip to content

Commit 8b226df

Browse files
committed
new CI with github actions
Signed-off-by: Mateus Felipe C. C. Pinto <[email protected]>
1 parent 8e94aff commit 8b226df

File tree

2 files changed

+57
-15
lines changed

2 files changed

+57
-15
lines changed

.github/workflows/deployment.yaml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Deploy to Pages
2+
3+
on:
4+
push:
5+
branches: ["deploy_test"]
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@v3
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+
environment:
41+
name: github-pages
42+
url: ${{ steps.deployment.outputs.page_url }}
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: Download static_assets
46+
uses: actions/download-artifact@v4
47+
with:
48+
name: static_assets
49+
- name: Setup Pages
50+
uses: actions/configure-pages@v5
51+
- name: Upload artifact
52+
uses: actions/upload-pages-artifact@v3
53+
with:
54+
path: './static'
55+
- name: Deploy to GitHub Pages
56+
id: deployment
57+
uses: actions/deploy-pages@v4

.travis.yml

-15
This file was deleted.

0 commit comments

Comments
 (0)