Skip to content

Commit 5349861

Browse files
Merge pull request #68 from PyConAPAC/pycon-asia-site-next
Migrate GitHub Pages to new static pycon.asia site
2 parents 97881e6 + a161b28 commit 5349861

93 files changed

Lines changed: 564 additions & 68 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/deploy.yml‎

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Deploy to GitHub Pages
1+
name: Deploy Static Site
22

33
on:
44
workflow_dispatch:
@@ -7,26 +7,25 @@ on:
77
- main
88

99
jobs:
10-
build-and-deploy:
10+
deploy:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
1214

1315
steps:
1416
- name: Checkout
15-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1618

17-
- name: Set up Node.js
18-
uses: actions/setup-node@v4
19-
with:
20-
node-version: "20"
21-
22-
- name: Install Dependencies
23-
run: npm install
24-
25-
- name: Build
26-
run: CI='false' npm run build
19+
- name: Prepare deployment files
20+
run: |
21+
rm -rf deploy
22+
mkdir deploy
23+
cp index.html styles.css script.js CNAME deploy/
24+
cp -R assets deploy/assets
2725
2826
- name: Deploy to GitHub Pages
29-
uses: JamesIves/github-pages-deploy-action@4.1.5
27+
uses: JamesIves/github-pages-deploy-action@v4
3028
with:
3129
branch: gh-pages
32-
folder: build
30+
folder: deploy
31+
clean: true

‎README.md‎

Lines changed: 65 additions & 53 deletions
Lines changed: 82 additions & 0 deletions

package-lock.json renamed to archive/legacy-react-site/package-lock.json

File renamed without changes.

public/favicon.ico renamed to archive/legacy-react-site/public/favicon.ico

File renamed without changes.

public/images/about-img-lg.png renamed to archive/legacy-react-site/public/images/about-img-lg.png

File renamed without changes.

public/images/banner-img-1.png renamed to archive/legacy-react-site/public/images/banner-img-1.png

File renamed without changes.

public/images/banner-img-2.png renamed to archive/legacy-react-site/public/images/banner-img-2.png

File renamed without changes.

public/images/banner-img-3.png renamed to archive/legacy-react-site/public/images/banner-img-3.png

File renamed without changes.

0 commit comments

Comments
 (0)