-
Notifications
You must be signed in to change notification settings - Fork 23
47 lines (39 loc) · 1.3 KB
/
publish.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
name: Deploy site
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Package files
run: |
cd archive
chmod +x build.sh
./build.sh
# to get README.md to webpage as well as GitHub's UI
- name: Pre-generation of directory listing
run: cp README.md out/README.md
- name: Github Pages Directory Listing
uses: jayanta525/github-pages-directory-listing@main
with:
FOLDER: out
# these shouldn't be in apindex, but need to be in repo root for GitHub Pages
- name: Pre-generation of directory listing
run: |
mkdir public
cp -r out/* public
cp CNAME public
touch public/.nojekyll
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.4.3
with:
repository-name: DS-Homebrew/flashcard-archive-web
token: ${{ secrets.WEB_PUSH_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
folder: public # The folder the action should deploy.
clean: true # Automatically remove deleted files from the deploy branchimage: ubuntu:bionic