mirror of
https://github.com/ForkAwesome/Fork-Awesome
synced 2024-06-01 05:12:47 +02:00
Compare commits
4 commits
094e751cb1
...
2e6f0de631
Author | SHA1 | Date | |
---|---|---|---|
2e6f0de631 | |||
f6e4f96ccd | |||
0237ab8eaf | |||
f050375b8a |
35
.github/workflows/gh-pages.yml
vendored
Normal file
35
.github/workflows/gh-pages.yml
vendored
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
name: Github Pages
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "main" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "main" ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
pages:
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Build the Docker image
|
||||||
|
run: docker build . --file Dockerfile --tag fa-builder
|
||||||
|
- name: build Pages
|
||||||
|
run: |
|
||||||
|
mkdir _site
|
||||||
|
docker run -u $(id -u):$(id -g) -v $(pwd):/workspace fa-builder npm run build
|
||||||
|
- name: Upload GitHub Pages artifact
|
||||||
|
uses: actions/upload-pages-artifact@v1
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v2
|
||||||
|
|
|
@ -10,4 +10,8 @@ RUN apt-get update -y \
|
||||||
woff-tools \
|
woff-tools \
|
||||||
woff2
|
woff2
|
||||||
|
|
||||||
|
WORKDIR /workspace
|
||||||
|
COPY Gemfile /workspace
|
||||||
|
COPY Gemfile.lock /workspace
|
||||||
|
RUN bundle install
|
||||||
CMD bash
|
CMD bash
|
||||||
|
|
|
@ -100,16 +100,19 @@ Then, run the Docker container:
|
||||||
|
|
||||||
$ docker run --rm -it \
|
$ docker run --rm -it \
|
||||||
-u $(id -u):$(id -g) \
|
-u $(id -u):$(id -g) \
|
||||||
-v $(pwd):$(pwd) \
|
-v $(pwd):/workspace \
|
||||||
-w $(pwd) \
|
-p 7998:7998 \
|
||||||
fa-builder
|
fa-builder
|
||||||
|
|
||||||
Within the container, build the font:
|
Within the container, build the font:
|
||||||
|
|
||||||
$ bundle install --path vendor/bundle
|
|
||||||
$ npm ci
|
$ npm ci
|
||||||
$ make -C src/icons
|
$ make -C src/icons
|
||||||
|
|
||||||
|
Build the web documentation and serve it on a local server on http://localhost:7998:
|
||||||
|
|
||||||
|
$ npm run dev
|
||||||
|
|
||||||
<!--- reference links for badges -->
|
<!--- reference links for badges -->
|
||||||
|
|
||||||
[all-contrib]: https://img.shields.io/badge/all_contributors-128-orange.svg "All Contributors badge"
|
[all-contrib]: https://img.shields.io/badge/all_contributors-128-orange.svg "All Contributors badge"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
safe: false
|
safe: false
|
||||||
port: 7998
|
port: 7998
|
||||||
url: http://localhost:7998
|
host: 0.0.0.0
|
||||||
|
url: http://0.0.0.0:7998
|
||||||
|
|
||||||
source: src/doc/
|
source: src/doc/
|
||||||
destination: _site
|
destination: _site
|
||||||
|
|
|
@ -7815,7 +7815,7 @@ icons:
|
||||||
categories:
|
categories:
|
||||||
- Brand Icons
|
- Brand Icons
|
||||||
|
|
||||||
- name: Open Source Initiative
|
- name: Open Source Initiative
|
||||||
id: osi
|
id: osi
|
||||||
unicode: f363
|
unicode: f363
|
||||||
created: 1.2
|
created: 1.2
|
||||||
|
|
Loading…
Reference in a new issue